de.fzj.unicore.wsrflite.xfire
Class JSR181ServiceFactory

java.lang.Object
  extended by org.codehaus.xfire.service.binding.ObjectServiceFactory
      extended by org.codehaus.xfire.xmlbeans.XmlBeansServiceFactory
          extended by de.fzj.unicore.wsrflite.xfire.JSR181ServiceFactory
All Implemented Interfaces:
org.codehaus.xfire.service.ServiceFactory

public class JSR181ServiceFactory
extends org.codehaus.xfire.xmlbeans.XmlBeansServiceFactory

process JSR181 annotations to setup the service

Author:
schuller

Field Summary
 
Fields inherited from class org.codehaus.xfire.service.binding.ObjectServiceFactory
CREATE_DEFAULT_BINDINGS, PORT_NAME, PORT_TYPE, SCHEMAS, SCOPE, SOAP11_TRANSPORTS, SOAP12_TRANSPORTS, STYLE, USE
 
Constructor Summary
JSR181ServiceFactory()
           
JSR181ServiceFactory(org.codehaus.xfire.transport.TransportManager arg0)
           
 
Method Summary
protected  org.codehaus.xfire.service.OperationInfo addOperation(org.codehaus.xfire.service.Service endpoint, Method method, String style)
          Generate OperationInfo, such as the WSAddressing action
 org.codehaus.xfire.service.Service create(Class clazz, String name, String namespace, Map properties)
           
protected  String getAction(org.codehaus.xfire.service.OperationInfo oi)
          retrieves the wsa:Action
protected  QName getPortType(Class<?> clazz)
          return the porttype
protected  String getTargetNamespace(Class clazz)
          get the target namespace
protected  boolean isValidMethod(Method method)
          checks whether the given method should be exposed as a webservice, these have to be annotated with the WebMethod annotation
 void setFaultTo(org.codehaus.xfire.addressing.EndpointReference to)
           
 void setReplyTo(org.codehaus.xfire.addressing.EndpointReference to)
           
 void setTo(String to)
           
 
Methods inherited from class org.codehaus.xfire.service.binding.ObjectServiceFactory
addFault, addIgnoredMethods, addSoap11Transport, addSoap12Transport, configureHeaders, create, create, create, create, create, createBindingOperation, createBindings, createDocumentationProvider, createEndpoint, createInputMessageName, createOutputMessageName, createSoap11Binding, createSoap12Binding, createSoapBinding, getBindingProvider, getCustomTypesMapping, getDocumentationProvider, getFaultName, getIgnoredClasses, getInParameterName, getMEP, getOperationName, getOutParameterName, getSerializer, getServiceConfigurations, getSoap11Transports, getSoap12Transports, getStyle, getTransportManager, getUse, getWsdlBuilderFactory, hasOutMessage, initializeFaults, initializeOperations, isAsync, isBindingCreationEnabled, isCustomFaultsEnabled, isFaultInfoClass, isHeader, isInParam, isOutParam, isVoidOneWay, makeServiceNameFromClassName, registerHandlers, setBindingCreationEnabled, setBindingProvider, setCustomFaultsEnabled, setCustomTypesMapping, setDocumentationProvider, setServiceConfigurations, setStyle, setTransportManager, setUse, setVoidOneWay, setWsdlBuilderFactory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JSR181ServiceFactory

public JSR181ServiceFactory()

JSR181ServiceFactory

public JSR181ServiceFactory(org.codehaus.xfire.transport.TransportManager arg0)
Method Detail

setTo

public void setTo(String to)

setReplyTo

public void setReplyTo(org.codehaus.xfire.addressing.EndpointReference to)

setFaultTo

public void setFaultTo(org.codehaus.xfire.addressing.EndpointReference to)

addOperation

protected org.codehaus.xfire.service.OperationInfo addOperation(org.codehaus.xfire.service.Service endpoint,
                                                                Method method,
                                                                String style)
Generate OperationInfo, such as the WSAddressing action

Overrides:
addOperation in class org.codehaus.xfire.service.binding.ObjectServiceFactory

getAction

protected String getAction(org.codehaus.xfire.service.OperationInfo oi)
retrieves the wsa:Action

Overrides:
getAction in class org.codehaus.xfire.service.binding.ObjectServiceFactory

isValidMethod

protected boolean isValidMethod(Method method)
checks whether the given method should be exposed as a webservice, these have to be annotated with the WebMethod annotation

Overrides:
isValidMethod in class org.codehaus.xfire.service.binding.ObjectServiceFactory

getTargetNamespace

protected String getTargetNamespace(Class clazz)
get the target namespace

Overrides:
getTargetNamespace in class org.codehaus.xfire.service.binding.ObjectServiceFactory

create

public org.codehaus.xfire.service.Service create(Class clazz,
                                                 String name,
                                                 String namespace,
                                                 Map properties)
Specified by:
create in interface org.codehaus.xfire.service.ServiceFactory
Overrides:
create in class org.codehaus.xfire.service.binding.ObjectServiceFactory

getPortType

protected QName getPortType(Class<?> clazz)
return the porttype



Copyright © 2010. All Rights Reserved.