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

Object
  extended by Jsr181TypeMetadataImpl
All Implemented Interfaces:
Serializable, BeehiveWsTypeMetadata

public class Jsr181TypeMetadataImpl
extends Object
implements BeehiveWsTypeMetadata, Serializable

See Also:
Serialized Form

Constructor Summary
Jsr181TypeMetadataImpl()
          Default constructor.
Jsr181TypeMetadataImpl(JavaTypeInfo jt)
          This constructor creates an object that encapsulates all type-level annotations and their fields.
 
Method Summary
 void addMethod(BeehiveWsMethodMetadata method)
           
 void addSOAPHandler(BeehiveWsSOAPMessageHandlerInfo soapHandler)
           
 String getClassName()
           
 String getHcFileName()
           
 String getHcName()
           
 BeehiveWsMethodMetadata getMethod(String methodName, Class... paramTypes)
           
 Collection<BeehiveWsMethodMetadata> getMethods()
           
 BeehiveWsSecurityRolesInfo getSecurityRoles()
           
 String getSiValue()
           
 BeehiveWsSOAPBindingInfo getSoapBinding()
           
 List<? extends BeehiveWsSOAPMessageHandlerInfo> getSoapHandlers()
           
 String[] getTargetNamespaceParts()
           
 String getWsEndpointInterface()
           
 String getWsName()
           
 String getWsServiceName()
           
 String getWsTargetNamespace()
           
 String getWsWsdlLocation()
           
protected  void initFromAnnotation(WebService annotation)
           
 void initHandlersFromChainConfig(URL chainConfigURL, String chainName)
          Made public so specific implementations can configure handlers relevant to their own environment.
 void merge(JavaTypeInfo jt)
           
 void setClassName(String className)
           
 void setHcFileName(String hcFileName)
           
 void setHcName(String hcName)
           
 void setSecurityRoles(BeehiveWsSecurityRolesInfo securityRoles)
           
 void setSiValue(String siValue)
           
 void setSoapBinding(BeehiveWsSOAPBindingInfo soapBinding)
           
 void setWsEndpointInterface(String wsEndpointInterface)
           
 void setWsName(String wsName)
           
 void setWsServiceName(String wsServiceName)
           
 void setWsTargetNamespace(String wsTargetNamespace)
           
 void setWsWsdlLocation(String wsWsdlLocation)
           
 void validate()
           
protected  void validateContract(JavaTypeInfo jt)
          Checks if "jt" implements "this".
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Jsr181TypeMetadataImpl

public Jsr181TypeMetadataImpl()
Default constructor.


Jsr181TypeMetadataImpl

public Jsr181TypeMetadataImpl(JavaTypeInfo jt)
This constructor creates an object that encapsulates all type-level annotations and their fields. Moreover, it enforces all rules specified in JSR-181.

Parameters:
jt - An object that provides Java-specific context services for type-level annotations.
Method Detail

initFromAnnotation

protected void initFromAnnotation(WebService annotation)

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

Specified by:
initHandlersFromChainConfig in interface BeehiveWsTypeMetadata
Throws:
Exception

validate

public void validate()

getHcFileName

public String getHcFileName()
Specified by:
getHcFileName in interface BeehiveWsTypeMetadata
Returns:
Returns the hcFileName.

setHcFileName

public void setHcFileName(String hcFileName)
Specified by:
setHcFileName in interface BeehiveWsTypeMetadata
Parameters:
hcFileName - The hcFileName to set.

getHcName

public String getHcName()
Specified by:
getHcName in interface BeehiveWsTypeMetadata
Returns:
Returns the hcName.

setHcName

public void setHcName(String hcName)
Specified by:
setHcName in interface BeehiveWsTypeMetadata
Parameters:
hcName - The hcName to set.

getSecurityRoles

public BeehiveWsSecurityRolesInfo getSecurityRoles()
Specified by:
getSecurityRoles in interface BeehiveWsTypeMetadata
Returns:
Returns the securityRoles.

setSecurityRoles

public void setSecurityRoles(BeehiveWsSecurityRolesInfo securityRoles)
Specified by:
setSecurityRoles in interface BeehiveWsTypeMetadata
Parameters:
securityRoles - The securityRoles to set.

getSiValue

public String getSiValue()
Specified by:
getSiValue in interface BeehiveWsTypeMetadata
Returns:
Returns the siRunAs.

setSiValue

public void setSiValue(String siValue)
Specified by:
setSiValue in interface BeehiveWsTypeMetadata
Parameters:
siValue - The siRunAs to set.

getSoapBinding

public BeehiveWsSOAPBindingInfo getSoapBinding()
Specified by:
getSoapBinding in interface BeehiveWsTypeMetadata
Returns:
Returns the soapBinding.

setSoapBinding

public void setSoapBinding(BeehiveWsSOAPBindingInfo soapBinding)
Specified by:
setSoapBinding in interface BeehiveWsTypeMetadata
Parameters:
soapBinding - The soapBinding to set.

getWsName

public String getWsName()
Specified by:
getWsName in interface BeehiveWsTypeMetadata
Returns:
Returns the wsName.

setWsName

public void setWsName(String wsName)
Specified by:
setWsName in interface BeehiveWsTypeMetadata
Parameters:
wsName - The wsName to set.

getWsServiceName

public String getWsServiceName()
Specified by:
getWsServiceName in interface BeehiveWsTypeMetadata
Returns:
Returns the wsServiceName.

setWsServiceName

public void setWsServiceName(String wsServiceName)
Specified by:
setWsServiceName in interface BeehiveWsTypeMetadata
Parameters:
wsServiceName - The wsServiceName to set.

getWsTargetNamespace

public String getWsTargetNamespace()
Specified by:
getWsTargetNamespace in interface BeehiveWsTypeMetadata
Returns:
Returns the wsTargetNamespace.

setWsTargetNamespace

public void setWsTargetNamespace(String wsTargetNamespace)
Specified by:
setWsTargetNamespace in interface BeehiveWsTypeMetadata
Parameters:
wsTargetNamespace - The wsTargetNamespace to set.

getTargetNamespaceParts

public String[] getTargetNamespaceParts()
Specified by:
getTargetNamespaceParts in interface BeehiveWsTypeMetadata

getWsEndpointInterface

public String getWsEndpointInterface()
Specified by:
getWsEndpointInterface in interface BeehiveWsTypeMetadata
Returns:
Returns the wsEndpointInterface.

setWsEndpointInterface

public void setWsEndpointInterface(String wsEndpointInterface)
Specified by:
setWsEndpointInterface in interface BeehiveWsTypeMetadata
Parameters:
wsEndpointInterface - The wsEndpointInterface to set.

getWsWsdlLocation

public String getWsWsdlLocation()
Specified by:
getWsWsdlLocation in interface BeehiveWsTypeMetadata
Returns:
Returns the wsWsdlLocation.

setWsWsdlLocation

public void setWsWsdlLocation(String wsWsdlLocation)
Specified by:
setWsWsdlLocation in interface BeehiveWsTypeMetadata
Parameters:
wsWsdlLocation - The wsWsdlLocation to set.

getMethods

public Collection<BeehiveWsMethodMetadata> getMethods()
Specified by:
getMethods in interface BeehiveWsTypeMetadata
Returns:
Returns the methods.

getMethod

public BeehiveWsMethodMetadata getMethod(String methodName,
                                         Class... paramTypes)
Specified by:
getMethod in interface BeehiveWsTypeMetadata

addMethod

public void addMethod(BeehiveWsMethodMetadata method)
               throws ValidationException
Specified by:
addMethod in interface BeehiveWsTypeMetadata
Throws:
ValidationException

getSoapHandlers

public List<? extends BeehiveWsSOAPMessageHandlerInfo> getSoapHandlers()
Specified by:
getSoapHandlers in interface BeehiveWsTypeMetadata

addSOAPHandler

public void addSOAPHandler(BeehiveWsSOAPMessageHandlerInfo soapHandler)
Specified by:
addSOAPHandler in interface BeehiveWsTypeMetadata

getClassName

public String getClassName()
Specified by:
getClassName in interface BeehiveWsTypeMetadata

setClassName

public void setClassName(String className)
Specified by:
setClassName in interface BeehiveWsTypeMetadata

merge

public void merge(JavaTypeInfo jt)
           throws Exception
Specified by:
merge in interface BeehiveWsTypeMetadata
Parameters:
jt - SIB type info.
Throws:
Exception

validateContract

protected void validateContract(JavaTypeInfo jt)
                         throws ValidationException
Checks if "jt" implements "this".

Parameters:
jt - SIB type info.
Throws:
ValidationException