org.ow2.util.ee.metadata.ws.impl.struct
Class WebServiceMarker

java.lang.Object
  extended by org.ow2.util.ee.metadata.ws.impl.struct.WebServiceMarker
All Implemented Interfaces:
java.io.Serializable, org.ow2.util.ee.metadata.ws.api.struct.IWebServiceMarker

public class WebServiceMarker
extends java.lang.Object
implements org.ow2.util.ee.metadata.ws.api.struct.IWebServiceMarker

This class allow to set informations on @WebSrevice and @WebServiceProvider annotation.

Author:
Guillaume Sauthier
See Also:
Serialized Form

Constructor Summary
WebServiceMarker()
           
 
Method Summary
 java.lang.String getEndpointInterface()
           
 org.ow2.util.ee.metadata.common.api.xml.struct.IHandlerChains getHandlerChains()
           
 java.lang.String getName()
           
 javax.xml.namespace.QName getPortName()
           
 java.lang.String getProtocolBinding()
           
 javax.xml.namespace.QName getServiceName()
           
 java.lang.String getWsdlLocation()
           
 boolean isEnableMtom()
           
 boolean isWebServiceProvider()
           
 void setEnableMtom(boolean enableMtom)
           
 void setEndpointInterface(java.lang.String endpointInterface)
           
 void setHandlerChains(org.ow2.util.ee.metadata.common.api.xml.struct.IHandlerChains handlerChains)
          Set the HandlerChains resolved from deployment descriptor.
 void setName(java.lang.String name)
          Set the name of this serviceweb.
 void setPortName(javax.xml.namespace.QName portName)
           
 void setProtocolBinding(java.lang.String protocolBinding)
           
 void setServiceName(javax.xml.namespace.QName serviceName)
           
 void setWebServiceProvider(boolean wsProvider)
          Set if this class is annotated with @WebService or @WebServiceprovider
 void setWsdlLocation(java.lang.String wsdlLocation)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebServiceMarker

public WebServiceMarker()
Method Detail

isWebServiceProvider

public boolean isWebServiceProvider()
Specified by:
isWebServiceProvider in interface org.ow2.util.ee.metadata.ws.api.struct.IWebServiceMarker
Returns:
true if this marker denotes a class annotated with @WebServiceProvider instead of @WebService.

setWebServiceProvider

public void setWebServiceProvider(boolean wsProvider)
Set if this class is annotated with @WebService or @WebServiceprovider

Specified by:
setWebServiceProvider in interface org.ow2.util.ee.metadata.ws.api.struct.IWebServiceMarker
Parameters:
wsProvider - true/false

getWsdlLocation

public java.lang.String getWsdlLocation()
Specified by:
getWsdlLocation in interface org.ow2.util.ee.metadata.ws.api.struct.IWebServiceMarker
Returns:
the WSDL location (may be null).

setWsdlLocation

public void setWsdlLocation(java.lang.String wsdlLocation)
Specified by:
setWsdlLocation in interface org.ow2.util.ee.metadata.ws.api.struct.IWebServiceMarker
Parameters:
wsdlLocation - the overrided WSDL location.

getServiceName

public javax.xml.namespace.QName getServiceName()
Specified by:
getServiceName in interface org.ow2.util.ee.metadata.ws.api.struct.IWebServiceMarker
Returns:
the overrided wsdl:service name (may be null)

setServiceName

public void setServiceName(javax.xml.namespace.QName serviceName)
Specified by:
setServiceName in interface org.ow2.util.ee.metadata.ws.api.struct.IWebServiceMarker
Parameters:
serviceName - overriding value for wsdl:service name.

getPortName

public javax.xml.namespace.QName getPortName()
Specified by:
getPortName in interface org.ow2.util.ee.metadata.ws.api.struct.IWebServiceMarker
Returns:
the overrided wsdl:port name (may be null)

setPortName

public void setPortName(javax.xml.namespace.QName portName)
Specified by:
setPortName in interface org.ow2.util.ee.metadata.ws.api.struct.IWebServiceMarker
Parameters:
portName - overriding value for wsdl:port name.

getProtocolBinding

public java.lang.String getProtocolBinding()
Specified by:
getProtocolBinding in interface org.ow2.util.ee.metadata.ws.api.struct.IWebServiceMarker
Returns:
the overriding value for the protocol binding URI (may be null)

setProtocolBinding

public void setProtocolBinding(java.lang.String protocolBinding)
Specified by:
setProtocolBinding in interface org.ow2.util.ee.metadata.ws.api.struct.IWebServiceMarker
Parameters:
protocolBinding - new URI specifying the overriding value for binding URI.

isEnableMtom

public boolean isEnableMtom()
Specified by:
isEnableMtom in interface org.ow2.util.ee.metadata.ws.api.struct.IWebServiceMarker
Returns:
true if MTOM is enabled (false by default)

setEnableMtom

public void setEnableMtom(boolean enableMtom)
Specified by:
setEnableMtom in interface org.ow2.util.ee.metadata.ws.api.struct.IWebServiceMarker
Parameters:
enableMtom - should MTOM be enabled on this port ?

getEndpointInterface

public java.lang.String getEndpointInterface()
Specified by:
getEndpointInterface in interface org.ow2.util.ee.metadata.ws.api.struct.IWebServiceMarker
Returns:
the overrided value for Service Endpoint Interface (may be null).

setEndpointInterface

public void setEndpointInterface(java.lang.String endpointInterface)
Specified by:
setEndpointInterface in interface org.ow2.util.ee.metadata.ws.api.struct.IWebServiceMarker
Parameters:
endpointInterface - the overriding value for SEI.

getName

public java.lang.String getName()
Specified by:
getName in interface org.ow2.util.ee.metadata.ws.api.struct.IWebServiceMarker
Returns:
the name of this web service (only applicable when using @WebService)

setName

public void setName(java.lang.String name)
Set the name of this serviceweb.

Specified by:
setName in interface org.ow2.util.ee.metadata.ws.api.struct.IWebServiceMarker
Parameters:
name - name of this webservice.

setHandlerChains

public void setHandlerChains(org.ow2.util.ee.metadata.common.api.xml.struct.IHandlerChains handlerChains)
Set the HandlerChains resolved from deployment descriptor.

Specified by:
setHandlerChains in interface org.ow2.util.ee.metadata.ws.api.struct.IWebServiceMarker
Parameters:
handlerChains - HandlerChains resolved from deployment descriptor.

getHandlerChains

public org.ow2.util.ee.metadata.common.api.xml.struct.IHandlerChains getHandlerChains()
Specified by:
getHandlerChains in interface org.ow2.util.ee.metadata.ws.api.struct.IWebServiceMarker
Returns:
the HandlerChains elements resolved from deployment descriptor.


Copyright © 2007-2009 OW2 Consortium. All Rights Reserved.