Subversion Repositories XServices

Rev

Rev 177 | Go to most recent revision | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 177 Rev 195
1
/*
1
/*
2
 *   Copyright 2013 Brian Rosenberger (Brutex Network)
2
 *   Copyright 2013 Brian Rosenberger (Brutex Network)
3
 *
3
 *
4
 *   Licensed under the Apache License, Version 2.0 (the "License");
4
 *   Licensed under the Apache License, Version 2.0 (the "License");
5
 *   you may not use this file except in compliance with the License.
5
 *   you may not use this file except in compliance with the License.
6
 *   You may obtain a copy of the License at
6
 *   You may obtain a copy of the License at
7
 *
7
 *
8
 *       http://www.apache.org/licenses/LICENSE-2.0
8
 *       http://www.apache.org/licenses/LICENSE-2.0
9
 *
9
 *
10
 *   Unless required by applicable law or agreed to in writing, software
10
 *   Unless required by applicable law or agreed to in writing, software
11
 *   distributed under the License is distributed on an "AS IS" BASIS,
11
 *   distributed under the License is distributed on an "AS IS" BASIS,
12
 *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
 *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
 *   See the License for the specific language governing permissions and
13
 *   See the License for the specific language governing permissions and
14
 *   limitations under the License.
14
 *   limitations under the License.
15
 */
15
 */
16
 
16
 
17
package net.brutex.xservices.ws;
17
package net.brutex.xservices.ws;
18
 
-
 
19
import java.util.ArrayList;
-
 
20
 
18
 
21
import javax.jws.WebMethod;
19
import javax.jws.WebMethod;
22
import javax.jws.WebParam;
20
import javax.jws.WebParam;
23
import javax.jws.WebService;
21
import javax.jws.WebService;
24
import javax.xml.bind.annotation.XmlElement;
22
import javax.xml.bind.annotation.XmlElement;
25
 
23
 
26
import net.brutex.xservices.types.StringMatchType;
24
import net.brutex.xservices.types.StringMatchType;
27
import net.brutex.xservices.types.StringReplaceType;
25
import net.brutex.xservices.types.StringReplaceType;
28
import net.brutex.xservices.types.StringSplitType;
26
import net.brutex.xservices.types.StringSplitType;
29
 
27
 
30
import org.apache.cxf.annotations.WSDLDocumentation;
28
import org.apache.cxf.annotations.WSDLDocumentation;
31
 
29
 
32
/**
30
/**
33
 * @author Brian Rosenberger, bru(at)brutex.de
31
 * @author Brian Rosenberger, bru(at)brutex.de
34
 *
32
 *
35
 */
33
 */
36
@WebService(targetNamespace="http://ws.xservices.brutex.net")
34
@WebService(targetNamespace="http://ws.xservices.brutex.net")
37
public abstract interface StringService
35
public abstract interface StringService
38
{
36
{
39
  public static final String SERVICE_NAME = "StringService";
37
  public static final String SERVICE_NAME = "StringService";
40
  public static final String OPERATION_REPLACEREGEX = "replaceRegEx";
38
  public static final String OPERATION_REPLACEREGEX = "replaceRegEx";
41
  public static final String OPERATION_MATCHREGEX = "matchRegEx";
39
  public static final String OPERATION_MATCHREGEX = "matchRegEx";
42
  public static final String OPERATION_ENCODETOENTITIES = "encodeToXMLEntities";
40
  public static final String OPERATION_ENCODETOENTITIES = "encodeToXMLEntities";
43
  public static final String PARAM_STRING = "string";
41
  public static final String PARAM_STRING = "string";
44
  public static final String PARAM_SEARCH = "search";
42
  public static final String PARAM_SEARCH = "search";
45
  public static final String PARAM_REPLACE = "replace";
43
  public static final String PARAM_REPLACE = "replace";
46
  public static final String PARAM_FLAGS = "regexflags";
44
  public static final String PARAM_FLAGS = "regexflags";
47
 
45
 
48
  @WebMethod(operationName="replaceRegEx")
46
  @WebMethod(operationName="replaceRegEx")
49
  @WSDLDocumentation("Store text based data")
47
  @WSDLDocumentation("Store text based data")
50
  public abstract StringReplaceType replaceRegEx(
48
  public abstract StringReplaceType replaceRegEx(
51
		  @WebParam(name="string") String paramString1, 
49
		  @WebParam(name="string") String paramString1, 
52
		  @WebParam(name="search") String paramString2, 
50
		  @WebParam(name="search") String paramString2, 
53
		  @WebParam(name="replace") String paramString3, 
51
		  @WebParam(name="replace") String paramString3, 
54
		  @WebParam(name="regexflags") String paramString4)
52
		  @WebParam(name="regexflags") String paramString4)
55
    throws XServicesFault;
53
    throws XServicesFault;
56
 
54
 
57
  @WebMethod(operationName="matchRegEx")
55
  @WebMethod(operationName="matchRegEx")
58
  @WSDLDocumentation("Match text based data")
56
  @WSDLDocumentation("Match text based data")
59
  public abstract StringMatchType matchRegEx(
57
  public abstract StringMatchType matchRegEx(
60
		  @WebParam(name="string") String paramString1, 
58
		  @WebParam(name="string") String paramString1, 
61
		  @WebParam(name="search") String paramString2, 
59
		  @WebParam(name="search") String paramString2, 
62
		  @WebParam(name="regexflags") String paramString3)
60
		  @WebParam(name="regexflags") String paramString3)
63
    throws XServicesFault;
61
    throws XServicesFault;
64
 
62
 
65
  @WebMethod(operationName="encodeToXMLEntities")
63
  @WebMethod(operationName="encodeToXMLEntities")
66
  @WSDLDocumentation("Match text based data")
64
  @WSDLDocumentation("Match text based data")
67
  public abstract String encodeToXMLEntities(
65
  public abstract String encodeToXMLEntities(
68
		  @WebParam(name="string") @XmlElement(required=true) String paramString)
66
		  @WebParam(name="string") @XmlElement(required=true) String paramString)
69
    throws XServicesFault;
67
    throws XServicesFault;
70
  
68
  
71
  @WebMethod(operationName="splitString")
69
  @WebMethod(operationName="splitString")
72
  @WSDLDocumentation("Split a string into tokens")
70
  @WSDLDocumentation("Split a string into tokens")
73
  public abstract StringSplitType splitString( 
71
  public abstract StringSplitType splitString( 
74
		  @WebParam(name="string") @XmlElement(required=true) String paramString,
72
		  @WebParam(name="string") @XmlElement(required=true) String paramString,
75
		  @WebParam(name="delimiter") @XmlElement(required=true) String delimiter)
73
		  @WebParam(name="delimiter") @XmlElement(required=true) String delimiter)
76
  	throws XServicesFault;
74
  	throws XServicesFault;
77
  
75
  
78
  @WebMethod(operationName="removeCRLF")
76
  @WebMethod(operationName="removeCRLF")
79
  @WSDLDocumentation("Remove any line feed and/ or carriage return characters")
77
  @WSDLDocumentation("Remove any line feed and/ or carriage return characters")
80
  public abstract String removeCRLF(
78
  public abstract String removeCRLF(
81
		  @WebParam(name="string") @XmlElement(required=true) String paramString)
79
		  @WebParam(name="string") @XmlElement(required=true) String paramString)
82
	throws XServicesFault;
80
	throws XServicesFault;
-
 
81
  
-
 
82
  @WebMethod(operationName="handleStringLists")
-
 
83
  @WSDLDocumentation("Tokenizes all strings and then adds/removes tokens to/ from basestring")
-
 
84
  public abstract String handleStringLists( 
-
 
85
		  @WebParam(name="basestring") @XmlElement(required=true) String paramBaseString,
-
 
86
		  @WebParam(name="addstring") @XmlElement(required=true) String paramAddString,
-
 
87
		  @WebParam(name="removestring") @XmlElement(required=true) String paramRemoveString,
-
 
88
		  @WebParam(name="delimiter") @XmlElement(required=true) String delimiter)
-
 
89
  	throws XServicesFault;
83
  
90
  
84
}
91
}
85
 
92
 
86
Generated by GNU Enscript 1.6.5.90.
93
Generated by GNU Enscript 1.6.5.90.
87
 
94
 
88
 
95