org.objectweb.jonas_ws.deployment.api
Class PortComponentDesc

java.lang.Object
  extended byorg.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

Field Summary
protected  java.lang.String sib
          The classname of bean implementing the service
protected  java.lang.String sibLink
          the sib link, can be ejb or servlet link
 
Constructor Summary
protected PortComponentDesc(java.lang.ClassLoader jarCL, PortComponent pc, ServiceDesc parent)
          Creates a new PortComponentDesc object.
 
Method Summary
 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.
 ServiceDesc getServiceDesc()
          Return the parent ServiceDesc of the PortComponent.
 java.lang.String getServiceEndpointInterface()
          Return the Service Endpoint Interface name.
 java.lang.String getSIBClassname()
          Return the implementation bean.
 java.lang.String getSibLink()
          Return the service-impl-bean value. the sib can be an ejb or a servlet.
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.
protected  void setSIBClassname(java.lang.String sibClassName)
          Deprecated. sib class set with the setSessionStatelessDesc or setWebDesc methods.
 java.lang.String toString()
          return a String representation of the PortComponent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

sibLink

protected java.lang.String sibLink
the sib link, can be ejb or servlet link


sib

protected java.lang.String sib
The classname of bean implementing the service

Constructor Detail

PortComponentDesc

protected PortComponentDesc(java.lang.ClassLoader jarCL,
                            PortComponent pc,
                            ServiceDesc parent)
                     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

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.String 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.

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()
return a String representation of the PortComponent