com.ca.jcs.sdkws.connection
Class SDKWSConnection

java.lang.Object
  extended by com.ca.jcs.sdkws.connection.SDKWSConnection

public class SDKWSConnection
extends Object

Creates a connection stub which can be used to communicate with the endpoint.

Author:
erstr01

Field Summary
static String RAMPART
          The rampart module
 
Constructor Summary
SDKWSConnection(SDKWSConnectionDetails connectionDetails)
          Constructor that checks and sets the connection details object.
 
Method Summary
 Stub createStub(Class stubClass, String uri)
          Creates a stub class with security applied to it's Option object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RAMPART

public static final String RAMPART
The rampart module

See Also:
Constant Field Values
Constructor Detail

SDKWSConnection

public SDKWSConnection(SDKWSConnectionDetails connectionDetails)
                throws NamingException
Constructor that checks and sets the connection details object.

Parameters:
connectionDetails - the connection details.
Throws:
NamingException - if the connection details is null.
Method Detail

createStub

public Stub createStub(Class stubClass,
                       String uri)
                throws NamingException
Creates a stub class with security applied to it's Option object.

Parameters:
stubClass - the class of the stub.
uri - the URI of the service. For example, /forwardinc/services/UserService The http://localhost:8080 part should be supplied in connectionDetails.
Returns:
stub the actual stub instance which will be used to invoke the service with. This stub has the security configured.
Throws:
NamingException - if there are any errors creating the stub.


Created 2011-07-14 13:27 EST