Subversion Repositories XServices

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
86 brianR 1
/*
2
 *   Copyright 2012 Brian Rosenberger (Brutex Network)
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;
22
 
23
import net.brutex.xservices.types.ReturnCode;
24
import net.brutex.xservices.types.StringReplaceType;
25
import net.brutex.xservices.types.TargetNodeType;
26
import net.brutex.xservices.types.ant.AttachmentType;
27
import net.brutex.xservices.types.ant.CollectionType;
28
import net.brutex.xservices.types.ant.FileResource;
29
import net.brutex.xservices.util.BrutexNamespaces;
30
 
31
import org.apache.cxf.annotations.WSDLDocumentation;
32
 
33
/**
34
 * String operation services.
35
 * @author Brian Rosenberger
36
 * @since 0.5.0
37
 *
38
 */
39
@WebService(targetNamespace = BrutexNamespaces.WS_XSERVICES)
40
public interface StringService {
41
 
42
	public static final String SERVICE_NAME = "StringService";
43
 
44
	final String OPERATION_REPLACEREGEX = "replaceRegEx";
45
 
46
 
47
	final static String PARAM_STRING = "string";
48
	final static String PARAM_SEARCH = "search";
49
	final static String PARAM_REPLACE = "replace";
50
	final static String PARAM_FLAGS = "regexflags";
51
		;
52
	/**
53
	 * String replace using regular expression.
54
	 * @param res String
55
	 * @param search regex search pattern
56
	 * @param replace string replacement
57
	 * @param flags regex flags
58
	 *
59
	 * @return replacement
60
	 * @throws XServicesFault
61
	 */
62
	@WebMethod(operationName=OPERATION_REPLACEREGEX)
63
	@WSDLDocumentation(value="Store text based data")
64
	public abstract StringReplaceType replaceRegEx(
65
			@WebParam(name = PARAM_STRING) String res,
66
			@WebParam(name = PARAM_SEARCH) String search,
67
			@WebParam(name = PARAM_REPLACE) String replace,
68
			@WebParam(name = PARAM_FLAGS) String flags) throws XServicesFault;
69
 
70
 
71
}