2012-05-21 20:23:11 +02:00
|
|
|
/*
|
2013-02-05 15:40:53 +01:00
|
|
|
* Copyright 2013 Brian Rosenberger (Brutex Network)
|
2012-05-21 20:23:11 +02:00
|
|
|
*
|
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
* you may not use this file except in compliance with the License.
|
|
|
|
* You may obtain a copy of the License at
|
|
|
|
*
|
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
*
|
|
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
* See the License for the specific language governing permissions and
|
|
|
|
* limitations under the License.
|
|
|
|
*/
|
|
|
|
|
|
|
|
package net.brutex.xservices.ws;
|
|
|
|
|
2024-07-06 08:29:01 +02:00
|
|
|
import jakarta.jws.WebMethod;
|
|
|
|
import jakarta.jws.WebParam;
|
|
|
|
import jakarta.jws.WebService;
|
|
|
|
import jakarta.xml.bind.annotation.XmlElement;
|
2012-05-21 20:23:11 +02:00
|
|
|
|
2012-08-16 11:59:13 +02:00
|
|
|
import net.brutex.xservices.types.StringMatchType;
|
2012-05-21 20:23:11 +02:00
|
|
|
import net.brutex.xservices.types.StringReplaceType;
|
2013-02-05 15:40:53 +01:00
|
|
|
import net.brutex.xservices.types.StringSplitType;
|
2012-05-21 20:23:11 +02:00
|
|
|
|
|
|
|
import org.apache.cxf.annotations.WSDLDocumentation;
|
|
|
|
|
|
|
|
/**
|
2013-02-05 15:40:53 +01:00
|
|
|
* @author Brian Rosenberger, bru(at)brutex.de
|
2012-05-21 20:23:11 +02:00
|
|
|
*
|
|
|
|
*/
|
2013-02-05 15:40:53 +01:00
|
|
|
@WebService(targetNamespace="http://ws.xservices.brutex.net")
|
|
|
|
public abstract interface StringService
|
|
|
|
{
|
|
|
|
public static final String SERVICE_NAME = "StringService";
|
|
|
|
public static final String OPERATION_REPLACEREGEX = "replaceRegEx";
|
|
|
|
public static final String OPERATION_MATCHREGEX = "matchRegEx";
|
|
|
|
public static final String OPERATION_ENCODETOENTITIES = "encodeToXMLEntities";
|
|
|
|
public static final String PARAM_STRING = "string";
|
|
|
|
public static final String PARAM_SEARCH = "search";
|
|
|
|
public static final String PARAM_REPLACE = "replace";
|
|
|
|
public static final String PARAM_FLAGS = "regexflags";
|
|
|
|
|
|
|
|
@WebMethod(operationName="replaceRegEx")
|
|
|
|
@WSDLDocumentation("Store text based data")
|
|
|
|
public abstract StringReplaceType replaceRegEx(
|
|
|
|
@WebParam(name="string") String paramString1,
|
|
|
|
@WebParam(name="search") String paramString2,
|
|
|
|
@WebParam(name="replace") String paramString3,
|
|
|
|
@WebParam(name="regexflags") String paramString4)
|
|
|
|
throws XServicesFault;
|
2012-05-21 20:23:11 +02:00
|
|
|
|
2013-02-05 15:40:53 +01:00
|
|
|
@WebMethod(operationName="matchRegEx")
|
|
|
|
@WSDLDocumentation("Match text based data")
|
|
|
|
public abstract StringMatchType matchRegEx(
|
|
|
|
@WebParam(name="string") String paramString1,
|
|
|
|
@WebParam(name="search") String paramString2,
|
|
|
|
@WebParam(name="regexflags") String paramString3)
|
|
|
|
throws XServicesFault;
|
2012-05-21 20:23:11 +02:00
|
|
|
|
2013-02-05 15:40:53 +01:00
|
|
|
@WebMethod(operationName="encodeToXMLEntities")
|
|
|
|
@WSDLDocumentation("Match text based data")
|
|
|
|
public abstract String encodeToXMLEntities(
|
|
|
|
@WebParam(name="string") @XmlElement(required=true) String paramString)
|
|
|
|
throws XServicesFault;
|
|
|
|
|
|
|
|
@WebMethod(operationName="splitString")
|
|
|
|
@WSDLDocumentation("Split a string into tokens")
|
|
|
|
public abstract StringSplitType splitString(
|
|
|
|
@WebParam(name="string") @XmlElement(required=true) String paramString,
|
|
|
|
@WebParam(name="delimiter") @XmlElement(required=true) String delimiter)
|
|
|
|
throws XServicesFault;
|
|
|
|
|
2015-08-24 09:58:52 +02:00
|
|
|
@WebMethod(operationName="removeCRLF")
|
|
|
|
@WSDLDocumentation("Remove any line feed and/ or carriage return characters")
|
|
|
|
public abstract String removeCRLF(
|
|
|
|
@WebParam(name="string") @XmlElement(required=true) String paramString)
|
|
|
|
throws XServicesFault;
|
|
|
|
|
2019-02-11 18:02:11 +01:00
|
|
|
@WebMethod(operationName="handleStringLists")
|
|
|
|
@WSDLDocumentation("Tokenizes all strings and then adds/removes tokens to/ from basestring")
|
|
|
|
public abstract String handleStringLists(
|
|
|
|
@WebParam(name="basestring") @XmlElement(required=true) String paramBaseString,
|
|
|
|
@WebParam(name="addstring") @XmlElement(required=true) String paramAddString,
|
|
|
|
@WebParam(name="removestring") @XmlElement(required=true) String paramRemoveString,
|
|
|
|
@WebParam(name="delimiter") @XmlElement(required=true) String delimiter)
|
|
|
|
throws XServicesFault;
|
|
|
|
|
2013-02-05 15:40:53 +01:00
|
|
|
}
|