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"); * 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 SERVICE_NAME = "StringService";
public static final String OPERATION_REPLACEREGEX = "replaceRegEx";
final String OPERATION_REPLACEREGEX = "replaceRegEx"; public static final String OPERATION_MATCHREGEX = "matchRegEx";
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;
final static String PARAM_STRING = "string"; @WebMethod(operationName="matchRegEx")
final static String PARAM_SEARCH = "search"; @WSDLDocumentation("Match text based data")
final static String PARAM_REPLACE = "replace"; public abstract StringMatchType matchRegEx(
final static String PARAM_FLAGS = "regexflags"; @WebParam(name="string") String paramString1,
; @WebParam(name="search") String paramString2,
/** @WebParam(name="regexflags") String paramString3)
* String replace using regular expression. throws XServicesFault;
* @param res String
* @param search regex search pattern @WebMethod(operationName="encodeToXMLEntities")
* @param replace string replacement @WSDLDocumentation("Match text based data")
* @param flags regex flags public abstract String encodeToXMLEntities(
* @WebParam(name="string") @XmlElement(required=true) String paramString)
* @return replacement throws XServicesFault;
* @throws XServicesFault
*/ @WebMethod(operationName="splitString")
@WebMethod(operationName=OPERATION_REPLACEREGEX) @WSDLDocumentation("Split a string into tokens")
@WSDLDocumentation(value="Store text based data") public abstract StringSplitType splitString(
public abstract StringReplaceType replaceRegEx( @WebParam(name="string") @XmlElement(required=true) String paramString,
@WebParam(name = PARAM_STRING) String res, @WebParam(name="delimiter") @XmlElement(required=true) String delimiter)
@WebParam(name = PARAM_SEARCH) String search, throws XServicesFault;
@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;
}