org.jboss.wise.core.client
Interface WSEndpoint

All Known Implementing Classes:
WSEndpointImpl

@ThreadSafe
public interface WSEndpoint

This represent a Endpoint(Port) and has utility methods to edit username, password, endpoint address, attach handlers

Author:
Stefano Maestri, stefano.maestri@javalinux.it, Jim Ma

Method Summary
 void addHandler(javax.xml.ws.handler.Handler handler)
          Add an Handler to this endpoint.
 void addWSExtension(WSExtensionEnabler enabler)
          Use this method to add WSExtension you would enable on this endpoint.
 java.lang.ClassLoader getClassLoader()
           
 java.lang.String getMethodName()
           
 java.lang.Class getUnderlyingObjectClass()
           
 java.lang.Object getUnderlyingObjectInstance()
           
 java.lang.String getWsdlName()
           
 java.util.Map<java.lang.String,WSMethod> getWSMethods()
          Create the webmethods' map and it back.
 void setPassword(java.lang.String password)
           
 void setUsername(java.lang.String username)
           
 

Method Detail

getUnderlyingObjectInstance

java.lang.Object getUnderlyingObjectInstance()

getWsdlName

java.lang.String getWsdlName()

setUsername

void setUsername(java.lang.String username)

setPassword

void setPassword(java.lang.String password)

getUnderlyingObjectClass

java.lang.Class getUnderlyingObjectClass()

getMethodName

java.lang.String getMethodName()

addHandler

void addHandler(javax.xml.ws.handler.Handler handler)
Add an Handler to this endpoint. Handler will apply on all endpoint method called

Parameters:
handler -
See Also:
getWSMethods()

getWSMethods

java.util.Map<java.lang.String,WSMethod> getWSMethods()
Create the webmethods' map and it back. This maps would be used by clients to get a method to call and invoke it All calls of this method apply all handlers added with addHandler(Handler) method

Returns:
The list of WebMethod names

getClassLoader

java.lang.ClassLoader getClassLoader()
Returns:
classLoader used to load JAXWS generated object see also getUnderlyingObjectInstance() and getUnderlyingObjectClass()

addWSExtension

void addWSExtension(WSExtensionEnabler enabler)
Use this method to add WSExtension you would enable on this endpoint. Of course extension have to be enabled before you cal method associated to action you are going to invoke. Not necessary before you build WSMethods object associated to this endpoint getWSMethods() see also WSExtensionEnabler for more information on how to enable WSExtensions

Parameters:
enabler - it is an implementation of WSExtensionEnabler