JBoss Wise API

org.jboss.wise.core.client.impl.reflection
Class WSEndpointImpl

java.lang.Object
  extended by org.jboss.wise.core.client.impl.reflection.WSEndpointImpl
All Implemented Interfaces:
WSEndpoint

@ThreadSafe
public class WSEndpointImpl
extends java.lang.Object
implements WSEndpoint

This represent a WebEndpoint and has utility methods to edit username, password, endpoint address, attach handlers

Since:
09-Sep-2007
Author:
Stefano Maestri, stefano.maestri@javalinux.it

Field Summary
 java.util.List<WSExtensionEnabler> extensions
           
 java.util.List<javax.xml.ws.handler.Handler<?>> handlers
           
 java.lang.String password
           
 java.lang.String targetUrl
           
 java.lang.String userName
           
 
Constructor Summary
WSEndpointImpl(int maxThreadPoolSize)
           
 
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.Object createInstance()
          create the underlying instance of the endpoint generated class.
 java.lang.ClassLoader getClassLoader()
           
 java.util.List<WSExtensionEnabler> getExtensions()
           
 java.util.List<javax.xml.ws.handler.Handler<?>> getHandlers()
           
 java.lang.String getName()
           
 java.lang.String getPassword()
           
 java.util.concurrent.ExecutorService getService()
           
 java.lang.String getTargetUrl()
           
 java.lang.Class getUnderlyingObjectClass()
           
 java.lang.String getUsername()
           
 java.util.Map<java.lang.String,WSMethod> getWSMethods()
          Create the webmethods' map and it back.
 void setClassLoader(java.lang.ClassLoader classLoader)
           
 void setName(java.lang.String name)
           
 void setPassword(java.lang.String password)
          Set password used for Basic HTTP auth in calling ws
 void setTargetUrl(java.lang.String targetUrl)
          it give the opportunity to change target url of the endpoint defined in the wsdl
 void setUnderlyingObjectClass(java.lang.Class clazz)
           
 void setUsername(java.lang.String username)
          Set username used for Basic HTTP auth in calling ws
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

userName

public java.lang.String userName

password

public java.lang.String password

targetUrl

public java.lang.String targetUrl

extensions

public final java.util.List<WSExtensionEnabler> extensions

handlers

public final java.util.List<javax.xml.ws.handler.Handler<?>> handlers
Constructor Detail

WSEndpointImpl

public WSEndpointImpl(int maxThreadPoolSize)
Method Detail

createInstance

public java.lang.Object createInstance()
Description copied from interface: WSEndpoint
create the underlying instance of the endpoint generated class. Useful to create a thread pool invoking endpoint methods.

Specified by:
createInstance in interface WSEndpoint
Returns:
the created underlying instance of the endpoint generated class

getName

public java.lang.String getName()
Specified by:
getName in interface WSEndpoint
Returns:
endpoint name as defined in wsdl

getService

public java.util.concurrent.ExecutorService getService()
Returns:
service

setName

public void setName(java.lang.String name)

getTargetUrl

public java.lang.String getTargetUrl()
Specified by:
getTargetUrl in interface WSEndpoint
Returns:
the target url to invoke for this endpoint

setTargetUrl

public void setTargetUrl(java.lang.String targetUrl)
Description copied from interface: WSEndpoint
it give the opportunity to change target url of the endpoint defined in the wsdl

Specified by:
setTargetUrl in interface WSEndpoint

getUsername

public java.lang.String getUsername()
Specified by:
getUsername in interface WSEndpoint

setUsername

public void setUsername(java.lang.String username)
Set username used for Basic HTTP auth in calling ws

Specified by:
setUsername in interface WSEndpoint
Parameters:
username -

getPassword

public java.lang.String getPassword()
Specified by:
getPassword in interface WSEndpoint

setPassword

public void setPassword(java.lang.String password)
Set password used for Basic HTTP auth in calling ws

Specified by:
setPassword in interface WSEndpoint
Parameters:
password -

getUnderlyingObjectClass

public java.lang.Class getUnderlyingObjectClass()
Specified by:
getUnderlyingObjectClass in interface WSEndpoint

setUnderlyingObjectClass

public void setUnderlyingObjectClass(java.lang.Class clazz)

addHandler

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

Specified by:
addHandler in interface WSEndpoint
Parameters:
handler -
See Also:
getWSMethods()

getHandlers

public final java.util.List<javax.xml.ws.handler.Handler<?>> getHandlers()
Specified by:
getHandlers in interface WSEndpoint
Returns:
handlers

getWSMethods

public 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

Specified by:
getWSMethods in interface WSEndpoint
Returns:
The list of WebMethod names

getClassLoader

public java.lang.ClassLoader getClassLoader()
Specified by:
getClassLoader in interface WSEndpoint
Returns:
classLoader used to load JAXWS generated object see also WSEndpoint.getUnderlyingObjectClass()

setClassLoader

public void setClassLoader(java.lang.ClassLoader classLoader)

addWSExtension

public 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 WSEndpoint.getWSMethods() see also WSExtensionEnabler for more information on how to enable WSExtensions

Specified by:
addWSExtension in interface WSEndpoint
Parameters:
enabler - it is an implementation of WSExtensionEnabler
See Also:
WSEndpoint.addWSExtension(org.jboss.wise.core.wsextensions.WSExtensionEnabler)

getExtensions

public final java.util.List<WSExtensionEnabler> getExtensions()
Specified by:
getExtensions in interface WSEndpoint
Returns:
extensions

JBoss Wise API

Copyright © 2008-2009 Jboss.org. All Rights Reserved.