Subversion Repositories XServices

Rev

Details | Last modification | View Log | RSS feed

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