org.objectweb.jonas_ws.deployment.api
Class PortComponentDesc

java.lang.Object
  extended byorg.objectweb.jonas_ws.deployment.api.PortComponentDesc

public class PortComponentDesc
extends java.lang.Object

This class provides methodes to manipulate portComponent's attributes.

Author:
Guillaume Sauthier, Xavier Delplanque

Constructor Summary
PortComponentDesc(java.lang.ClassLoader jarCL, org.objectweb.jonas_ws.deployment.xml.PortComponent pc)
          Creates a new PortComponentDesc object.
 
Method Summary
 SessionStatelessDesc getBeanDesc()
          Return the StatelessSessionDesc object linked with this portComponentDesc or null if the portComp is linked to a servlet.
 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.
 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.
 java.lang.Class getServiceEndpointInterface()
          Return the Service Endpoint Interface.
 java.lang.Class getServiceImplementationBean()
          Return the implementation bean.
 java.lang.String getSibLink()
          Return the sib name. the sib can be an ejb or a servlet.
 WebContainerDeploymentDesc getWebDesc()
          Return the WebContainerDeploymentDesc object linked with this portComponentDesc or null if the portComp is linked to a stateless session bean.
 boolean hasBeanImpl()
          Return true if the Service Impl Bean is an EJB.
 boolean hasJaxRpcImpl()
          Return true if the Service Impl Bean is a JaxRpc component.
 void setBeanDesc(SessionStatelessDesc bean)
          Set the beanDesc for this endpoint.
 void setEndpointURL(java.net.URL url)
          Set the Endpoint URL of the port-component.
 void setSibClass(java.lang.Class sib)
          Deprecated. sib class set with the setBeanDesc or setWebDesc methods.
 void setWebDesc(WebContainerDeploymentDesc web)
          Set the webDesc for this endpoint.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PortComponentDesc

public PortComponentDesc(java.lang.ClassLoader jarCL,
                         org.objectweb.jonas_ws.deployment.xml.PortComponent pc)
                  throws WSDeploymentDescException
Creates a new PortComponentDesc object.

Parameters:
jarCL - the module (ejbjar or war) classloader.
pc - webservices portcomponent element
Throws:
WSDeploymentDescException - When construction fails.
Method Detail

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.

Returns:
the Service Endpoint Interface.

getServiceImplementationBean

public java.lang.Class getServiceImplementationBean()
Return the implementation bean. It's the bean class which do the real work.

Returns:
the implementation bean.

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 sib name. the sib can be an ejb or a servlet.

Returns:
the sib name.

setSibClass

public void setSibClass(java.lang.Class sib)
Deprecated. sib class set with the setBeanDesc or setWebDesc methods.

Set the sib class.

Parameters:
sib - the sib class.

hasBeanImpl

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

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

hasJaxRpcImpl

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

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

getBeanDesc

public SessionStatelessDesc getBeanDesc()
Return the StatelessSessionDesc object linked with this portComponentDesc or null if the portComp is linked to a servlet.

Returns:
the StatelessSessionDesc object linked with this portComponentDesc or null if the portComp is linked to a servlet.

getWebDesc

public WebContainerDeploymentDesc getWebDesc()
Return the WebContainerDeploymentDesc object linked with this portComponentDesc or null if the portComp is linked to a stateless session bean.

Returns:
the WebContainerDeploymentDesc object linked with this portComponentDesc or null if the portComp is linked to a stateless session bean.

setBeanDesc

public void setBeanDesc(SessionStatelessDesc bean)
Set the beanDesc for this endpoint.

Parameters:
bean - The SSB Object declaring the endpoint.

setWebDesc

public void setWebDesc(WebContainerDeploymentDesc web)
Set the webDesc for this endpoint.

Parameters:
web - The web DD declaring the JaxRpc Endpoint.

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.