org.apache.beehive.wsm.jsr181.model
Class WebServiceTYPEMetadata

Object
  extended by AnnotationModel
      extended by WebServiceTYPEMetadata

public class WebServiceTYPEMetadata
extends AnnotationModel


Constructor Summary
WebServiceTYPEMetadata(String sibClassName)
          Constructor.
WebServiceTYPEMetadata(WebService sibWsAnnotation, String sibClassName, Collection<Annotation> annotations, Collection<? extends WebServiceMETHODMetadata> webMethods)
          This method does not require to load the service implementation bean class.
 
Method Summary
 void addMethod(WebServiceMETHODMetadata method)
           
 void addSOAPHandler(SOAPMessageHandlerInfo soapHandler)
           
 String getHcFileName()
           
 String getHcName()
           
 Collection<WebServiceMETHODMetadata> getMethods()
           
 SecurityRolesInfo getSecurityRoles()
           
 String getServiceEndpointInterface()
           
 String getServiceImplementationBean()
           
 String getSiValue()
           
 SOAPBindingInfo getSoapBinding()
           
 List<SOAPMessageHandlerInfo> getSoapHandlers()
           
 DefinitionsDocument getWSDLAsDocument()
           
 String getWsEndpointInterface()
           
 String getWsName()
           
 String getWsServiceName()
           
 String getWsTargetNamespace()
           
 String getWsWsdlLocation()
           
protected  void initFromAnnotation(WebService sibWsAnnotation, WebService seiWsAnnotation)
           
 void initHandlersFromChainConfig(URL chainConfigURL, String chainName)
          Made public so specific implementations can configure handlers relevant to their own environment.
 void setHcFileName(String hcFileName)
           
 void setHcName(String hcName)
           
 void setSecurityRoles(SecurityRolesInfo securityRoles)
           
 void setSiValue(String siValue)
           
 void setSoapBinding(SOAPBindingInfo soapBinding)
           
 void setWsEndpointInterface(String wsEndpointInterface)
           
 void setWsName(String wsName)
           
 void setWsServiceName(String wsServiceName)
           
 void setWsTargetNamespace(String wsTargetNamespace)
           
 void setWsWsdlLocation(String wsWsdlLocation)
           
 void validate()
          Checks whether the implementation bean implements all the methods specified in the endpointInterface.
 
Methods inherited from class AnnotationModel
getAnnotationOfType, hasAnnotationType
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebServiceTYPEMetadata

public WebServiceTYPEMetadata(String sibClassName)
Constructor.

Parameters:
sibClassName - The fully-qualified name of the service implementation bean class.

WebServiceTYPEMetadata

public WebServiceTYPEMetadata(WebService sibWsAnnotation,
                              String sibClassName,
                              Collection<Annotation> annotations,
                              Collection<? extends WebServiceMETHODMetadata> webMethods)
                       throws Exception
This method does not require to load the service implementation bean class.

Parameters:
sibWsAnnotation - The @WebService annotation of the service implementation bean.
sibClassName - The fully-qualified name of the service implementation bean class.
annotations - All annotations (including @WebService) of the service endpoint interface if it exists; all annotations (including @WebService) of the service implementation bean otherwise.
webMethods - All methods that are published by the service.
Throws:
Exception
Method Detail

initFromAnnotation

protected void initFromAnnotation(WebService sibWsAnnotation,
                                  WebService seiWsAnnotation)

initHandlersFromChainConfig

public void initHandlersFromChainConfig(URL chainConfigURL,
                                        String chainName)
                                 throws Exception
Made public so specific implementations can configure handlers relevant to their own environment. Calls to this are ignored if SOAPHandlers are already configured. e.g. in case the config file is located next to the .jws source file in the context root of an axis webapp rather than in the classpath

Throws:
Exception

validate

public void validate()
              throws ValidationException
Checks whether the implementation bean implements all the methods specified in the endpointInterface.

Specified by:
validate in class AnnotationModel
Throws:
ValidationException

getWSDLAsDocument

public DefinitionsDocument getWSDLAsDocument()
                                      throws IOException,
                                             XmlException
Throws:
IOException
XmlException

getHcFileName

public String getHcFileName()
Returns:
Returns the hcFileName.

setHcFileName

public void setHcFileName(String hcFileName)
Parameters:
hcFileName - The hcFileName to set.

getHcName

public String getHcName()
Returns:
Returns the hcName.

setHcName

public void setHcName(String hcName)
Parameters:
hcName - The hcName to set.

getSecurityRoles

public SecurityRolesInfo getSecurityRoles()
Returns:
Returns the securityRoles.

setSecurityRoles

public void setSecurityRoles(SecurityRolesInfo securityRoles)
Parameters:
securityRoles - The securityRoles to set.

getSiValue

public String getSiValue()
Returns:
Returns the siRunAs.

setSiValue

public void setSiValue(String siValue)
Parameters:
siValue - The siRunAs to set.

getSoapBinding

public SOAPBindingInfo getSoapBinding()
Returns:
Returns the soapBinding.

setSoapBinding

public void setSoapBinding(SOAPBindingInfo soapBinding)
Parameters:
soapBinding - The soapBinding to set.

getWsName

public String getWsName()
Returns:
Returns the wsName.

setWsName

public void setWsName(String wsName)
Parameters:
wsName - The wsName to set.

getWsServiceName

public String getWsServiceName()
Returns:
Returns the wsServiceName.

setWsServiceName

public void setWsServiceName(String wsServiceName)
Parameters:
wsServiceName - The wsServiceName to set.

getWsTargetNamespace

public String getWsTargetNamespace()
Returns:
Returns the wsTargetNamespace.

setWsTargetNamespace

public void setWsTargetNamespace(String wsTargetNamespace)
Parameters:
wsTargetNamespace - The wsTargetNamespace to set.

getWsEndpointInterface

public String getWsEndpointInterface()
Returns:
Returns the wsEndpointInterface.

setWsEndpointInterface

public void setWsEndpointInterface(String wsEndpointInterface)
Parameters:
wsEndpointInterface - The wsEndpointInterface to set.

getWsWsdlLocation

public String getWsWsdlLocation()
Returns:
Returns the wsWsdlLocation.

setWsWsdlLocation

public void setWsWsdlLocation(String wsWsdlLocation)
Parameters:
wsWsdlLocation - The wsWsdlLocation to set.

getMethods

public Collection<WebServiceMETHODMetadata> getMethods()
Returns:
Returns the methods.

addMethod

public void addMethod(WebServiceMETHODMetadata method)

getSoapHandlers

public List<SOAPMessageHandlerInfo> getSoapHandlers()

addSOAPHandler

public void addSOAPHandler(SOAPMessageHandlerInfo soapHandler)

getServiceImplementationBean

public String getServiceImplementationBean()

getServiceEndpointInterface

public String getServiceEndpointInterface()