Arbeitsstand Anfang Februar
git-svn-id: https://brutex.net/svn/xservices/trunk@112 e7e49efb-446e-492e-b9ec-fcafc1997a86tag-20130205r
parent
4a247987da
commit
8b3c74e44b
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2012 Brian Rosenberger (Brutex Network)
|
* Copyright 2013 Brian Rosenberger (Brutex Network)
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -16,65 +16,63 @@
|
||||||
|
|
||||||
package net.brutex.xservices.ws;
|
package net.brutex.xservices.ws;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
|
|
||||||
import javax.jws.WebMethod;
|
import javax.jws.WebMethod;
|
||||||
import javax.jws.WebParam;
|
import javax.jws.WebParam;
|
||||||
import javax.jws.WebService;
|
import javax.jws.WebService;
|
||||||
|
import javax.xml.bind.annotation.XmlElement;
|
||||||
|
|
||||||
import net.brutex.xservices.types.ReturnCode;
|
|
||||||
import net.brutex.xservices.types.StringMatchType;
|
import net.brutex.xservices.types.StringMatchType;
|
||||||
import net.brutex.xservices.types.StringReplaceType;
|
import net.brutex.xservices.types.StringReplaceType;
|
||||||
import net.brutex.xservices.types.TargetNodeType;
|
import net.brutex.xservices.types.StringSplitType;
|
||||||
import net.brutex.xservices.types.ant.AttachmentType;
|
|
||||||
import net.brutex.xservices.types.ant.CollectionType;
|
|
||||||
import net.brutex.xservices.types.ant.FileResource;
|
|
||||||
import net.brutex.xservices.util.BrutexNamespaces;
|
|
||||||
|
|
||||||
import org.apache.cxf.annotations.WSDLDocumentation;
|
import org.apache.cxf.annotations.WSDLDocumentation;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* String operation services.
|
* @author Brian Rosenberger, bru(at)brutex.de
|
||||||
* @author Brian Rosenberger
|
|
||||||
* @since 0.5.0
|
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@WebService(targetNamespace = BrutexNamespaces.WS_XSERVICES)
|
@WebService(targetNamespace="http://ws.xservices.brutex.net")
|
||||||
public interface StringService {
|
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";
|
||||||
|
|
||||||
public static final String SERVICE_NAME = "StringService";
|
@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;
|
||||||
|
|
||||||
final String OPERATION_REPLACEREGEX = "replaceRegEx";
|
@WebMethod(operationName="matchRegEx")
|
||||||
final String OPERATION_MATCHREGEX = "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;
|
||||||
|
|
||||||
|
@WebMethod(operationName="encodeToXMLEntities")
|
||||||
|
@WSDLDocumentation("Match text based data")
|
||||||
|
public abstract String encodeToXMLEntities(
|
||||||
|
@WebParam(name="string") @XmlElement(required=true) String paramString)
|
||||||
|
throws XServicesFault;
|
||||||
|
|
||||||
final static String PARAM_STRING = "string";
|
@WebMethod(operationName="splitString")
|
||||||
final static String PARAM_SEARCH = "search";
|
@WSDLDocumentation("Split a string into tokens")
|
||||||
final static String PARAM_REPLACE = "replace";
|
public abstract StringSplitType splitString(
|
||||||
final static String PARAM_FLAGS = "regexflags";
|
@WebParam(name="string") @XmlElement(required=true) String paramString,
|
||||||
;
|
@WebParam(name="delimiter") @XmlElement(required=true) String delimiter)
|
||||||
/**
|
throws XServicesFault;
|
||||||
* String replace using regular expression.
|
|
||||||
* @param res String
|
|
||||||
* @param search regex search pattern
|
|
||||||
* @param replace string replacement
|
|
||||||
* @param flags regex flags
|
|
||||||
*
|
|
||||||
* @return replacement
|
|
||||||
* @throws XServicesFault
|
|
||||||
*/
|
|
||||||
@WebMethod(operationName=OPERATION_REPLACEREGEX)
|
|
||||||
@WSDLDocumentation(value="Store text based data")
|
|
||||||
public abstract StringReplaceType replaceRegEx(
|
|
||||||
@WebParam(name = PARAM_STRING) String res,
|
|
||||||
@WebParam(name = PARAM_SEARCH) String search,
|
|
||||||
@WebParam(name = PARAM_REPLACE) String replace,
|
|
||||||
@WebParam(name = PARAM_FLAGS) String flags) throws XServicesFault;
|
|
||||||
|
|
||||||
@WebMethod(operationName=OPERATION_MATCHREGEX)
|
|
||||||
@WSDLDocumentation(value="Match text based data")
|
|
||||||
public abstract StringMatchType matchRegEx(
|
|
||||||
@WebParam(name = PARAM_STRING) String res,
|
|
||||||
@WebParam(name = PARAM_SEARCH) String search,
|
|
||||||
@WebParam(name = PARAM_FLAGS) String flags) throws XServicesFault;
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
Loading…
Reference in New Issue