org.objectweb.jonas_ws.deployment.api
Class PortComponentDesc

java.lang.Object
  extended by org.objectweb.jonas_ws.deployment.api.PortComponentDesc
Direct Known Subclasses:
JaxRpcPortComponentDesc, SSBPortComponentDesc

public abstract class PortComponentDesc
extends java.lang.Object

This class provides methodes to manipulate portComponent's attributes.

Author:
Guillaume Sauthier, Xavier Delplanque

Constructor Summary
protected PortComponentDesc(java.lang.ClassLoader jarCL, PortComponent pc, JonasPortComponent jpc, ServiceDesc parent)
          Creates a new PortComponentDesc object.
 
Method Summary
 java.lang.String getEndpointURI()
           
 java.net.URL getEndpointURL()
          Return the URL where the port-component can be accessed.
 java.util.List getHandlers()
          Return the list of Handlers the PortComponent is associated with.
static I18n getI18n()
           
 java.lang.String getMapping()
           
 java.lang.String getName()
          Return the name of the PortComponent.
 javax.xml.namespace.QName getQName()
          Return the WSDL's Port QName, the PortComponent is asssociated with.
 ServiceDesc getServiceDesc()
          Return the parent ServiceDesc of the PortComponent.
 java.lang.Class getServiceEndpointInterface()
          Return the Service Endpoint Interface name.
 java.lang.String getServiceName()
           
 java.lang.String getSib()
           
 java.lang.String getSIBClassname()
          Return the implementation bean.
 java.lang.String getSibLink()
          Return the service-impl-bean value.
abstract  boolean hasBeanImpl()
          Return true if the Service Impl Bean is an EJB.
abstract  boolean hasJaxRpcImpl()
          Return true if the Service Impl Bean is a JaxRpc component.
abstract  void setDesc(java.lang.Object desc)
          Setter method for J2EE component linking.
 void setEndpointURL(java.net.URL url)
          Set the Endpoint URL of the port-component.
 void setSib(java.lang.String sib)
           
protected  void setSIBClassname(java.lang.String sibClassName)
          Deprecated. sib class set with the setSessionStatelessDesc or setWebDesc methods.
 void setSibLink(java.lang.String sibLink)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PortComponentDesc

protected PortComponentDesc(java.lang.ClassLoader jarCL,
                            PortComponent pc,
                            JonasPortComponent jpc,
                            ServiceDesc parent)
                     throws WSDeploymentDescException
Creates a new PortComponentDesc object.

Parameters:
jarCL - the module (ejbjar or war) classloader.
pc - webservices port-component element
jpc - webservices jonas-port-component element
parent - ServiceDesc containing the PortComponent
Throws:
WSDeploymentDescException - When construction fails.
Method Detail

getServiceDesc

public ServiceDesc getServiceDesc()
Return the parent ServiceDesc of the PortComponent.

Returns:
the parent ServiceDesc of the PortComponent.

getName

public java.lang.String getName()
Return the name of the PortComponent.

Returns:
the name of the PortComponent.

getServiceEndpointInterface

public java.lang.Class getServiceEndpointInterface()
Return the Service Endpoint Interface name.

Returns:
the Service Endpoint Interface name.

getSIBClassname

public java.lang.String getSIBClassname()
Return the implementation bean. It's the bean classname which do the real work.

Returns:
the implementation bean classname.

setSIBClassname

protected void setSIBClassname(java.lang.String sibClassName)
Deprecated. sib class set with the setSessionStatelessDesc or setWebDesc methods.

Set the sib class name.

Parameters:
sibClassName - the sib class name.

getQName

public javax.xml.namespace.QName getQName()
Return the WSDL's Port QName, the PortComponent is asssociated with.

Returns:
the port's QName

getHandlers

public java.util.List getHandlers()
Return the list of Handlers the PortComponent is associated with.

Returns:
the list of Handlers the PortComponent is associated with.

getSibLink

public java.lang.String getSibLink()
Return the service-impl-bean value. the sib can be an ejb or a servlet.

Returns:
the sib name.

hasBeanImpl

public abstract boolean hasBeanImpl()
Return true if the Service Impl Bean is an EJB.

Returns:
true if the Service Impl Bean is an EJB.

hasJaxRpcImpl

public abstract boolean hasJaxRpcImpl()
Return true if the Service Impl Bean is a JaxRpc component.

Returns:
true if the Service Impl Bean is a JaxRpc component.

getEndpointURL

public java.net.URL getEndpointURL()
Return the URL where the port-component can be accessed.

Returns:
the URL where the port-component can be accessed.

setEndpointURL

public void setEndpointURL(java.net.URL url)
Set the Endpoint URL of the port-component.

Parameters:
url - the resolved endpoint URL.

getMapping

public java.lang.String getMapping()
Returns:
Returns the mapping.

getServiceName

public java.lang.String getServiceName()
Returns:
Returns the serviceName.

setDesc

public abstract void setDesc(java.lang.Object desc)
                      throws WSDeploymentDescException
Setter method for J2EE component linking.

Parameters:
desc - the descriptor of the component implementing the endpoint.
Throws:
WSDeploymentDescException - when desc is an unknown type.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
Returns:
Returns a String representation of the PortComponent

getSib

public java.lang.String getSib()
Returns:
Returns the sib.

setSib

public void setSib(java.lang.String sib)
Parameters:
sib - The sib to set.

setSibLink

public void setSibLink(java.lang.String sibLink)
Parameters:
sibLink - The sibLink to set.

getI18n

public static I18n getI18n()
Returns:
Returns the i18n.

getEndpointURI

public java.lang.String getEndpointURI()
Returns:
Returns the endpointURI.