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