Subversion Repositories XServices

Rev

Go to most recent revision | 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
 
112 brianR 19
import java.util.ArrayList;
20
 
86 brianR 21
import javax.jws.WebMethod;
22
import javax.jws.WebParam;
23
import javax.jws.WebService;
112 brianR 24
import javax.xml.bind.annotation.XmlElement;
86 brianR 25
 
93 brianR 26
import net.brutex.xservices.types.StringMatchType;
86 brianR 27
import net.brutex.xservices.types.StringReplaceType;
112 brianR 28
import net.brutex.xservices.types.StringSplitType;
86 brianR 29
 
30
import org.apache.cxf.annotations.WSDLDocumentation;
31
 
32
/**
112 brianR 33
 * @author Brian Rosenberger, bru(at)brutex.de
86 brianR 34
 *
35
 */
112 brianR 36
@WebService(targetNamespace="http://ws.xservices.brutex.net")
37
public abstract interface StringService
38
{
39
  public static final String SERVICE_NAME = "StringService";
40
  public static final String OPERATION_REPLACEREGEX = "replaceRegEx";
41
  public static final String OPERATION_MATCHREGEX = "matchRegEx";
42
  public static final String OPERATION_ENCODETOENTITIES = "encodeToXMLEntities";
43
  public static final String PARAM_STRING = "string";
44
  public static final String PARAM_SEARCH = "search";
45
  public static final String PARAM_REPLACE = "replace";
46
  public static final String PARAM_FLAGS = "regexflags";
86 brianR 47
 
112 brianR 48
  @WebMethod(operationName="replaceRegEx")
49
  @WSDLDocumentation("Store text based data")
50
  public abstract StringReplaceType replaceRegEx(
51
		  @WebParam(name="string") String paramString1,
52
		  @WebParam(name="search") String paramString2,
53
		  @WebParam(name="replace") String paramString3,
54
		  @WebParam(name="regexflags") String paramString4)
55
    throws XServicesFault;
86 brianR 56
 
112 brianR 57
  @WebMethod(operationName="matchRegEx")
58
  @WSDLDocumentation("Match text based data")
59
  public abstract StringMatchType matchRegEx(
60
		  @WebParam(name="string") String paramString1,
61
		  @WebParam(name="search") String paramString2,
62
		  @WebParam(name="regexflags") String paramString3)
63
    throws XServicesFault;
64
 
65
  @WebMethod(operationName="encodeToXMLEntities")
66
  @WSDLDocumentation("Match text based data")
67
  public abstract String encodeToXMLEntities(
68
		  @WebParam(name="string") @XmlElement(required=true) String paramString)
69
    throws XServicesFault;
70
 
71
  @WebMethod(operationName="splitString")
72
  @WSDLDocumentation("Split a string into tokens")
73
  public abstract StringSplitType splitString(
74
		  @WebParam(name="string") @XmlElement(required=true) String paramString,
75
		  @WebParam(name="delimiter") @XmlElement(required=true) String delimiter)
76
  	throws XServicesFault;
77
 
177 brianR 78
  @WebMethod(operationName="removeCRLF")
79
  @WSDLDocumentation("Remove any line feed and/ or carriage return characters")
80
  public abstract String removeCRLF(
81
		  @WebParam(name="string") @XmlElement(required=true) String paramString)
82
	throws XServicesFault;
83
 
112 brianR 84
}