Arbeitsstand Anfang Februar

git-svn-id: https://brutex.net/svn/xservices/trunk@112 e7e49efb-446e-492e-b9ec-fcafc1997a86
tag-20130205r
Brian Rosenberger 2013-02-05 14:40:53 +00:00
parent 4a247987da
commit 8b3c74e44b
1 changed files with 47 additions and 49 deletions

View File

@ -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");
* you may not use this file except in compliance with the License.
@ -16,65 +16,63 @@
package net.brutex.xservices.ws;
import java.util.ArrayList;
import javax.jws.WebMethod;
import javax.jws.WebParam;
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.StringReplaceType;
import net.brutex.xservices.types.TargetNodeType;
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 net.brutex.xservices.types.StringSplitType;
import org.apache.cxf.annotations.WSDLDocumentation;
/**
* String operation services.
* @author Brian Rosenberger
* @since 0.5.0
* @author Brian Rosenberger, bru(at)brutex.de
*
*/
@WebService(targetNamespace = BrutexNamespaces.WS_XSERVICES)
public interface StringService {
@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";
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";
final String OPERATION_MATCHREGEX = "matchRegEx";
@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;
@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";
final static String PARAM_SEARCH = "search";
final static String PARAM_REPLACE = "replace";
final static String PARAM_FLAGS = "regexflags";
;
/**
* 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;
@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;
}