|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttoolbox.oracle.siebel.session.SessionTokenConfig
public class SessionTokenConfig
Encapsulates the configuration required to establish a stateless session with Oracle Siebel. The class provides access to the configuration parameters specified in XML or provided via the setter methods.
The class also provide methods to create and destroy authentication tokens.
Constructor Summary | |
---|---|
SessionTokenConfig()
Default constructor. |
|
SessionTokenConfig(java.lang.String name,
toolbox.allegato.XMLProperties xmlProps)
Initialises this config object with the given XML configuration. |
Method Summary | |
---|---|
Token |
createSessionToken()
Authenticate against Oracle Siebel and return a Token instance. |
void |
destroySessionToken(Token token)
Destroy the provided token. |
java.lang.String |
getContentType()
Returns the contentType property. |
java.lang.String |
getCreateEnvelope()
Returns the create envelope property. |
java.lang.String |
getDestroyEnvelope()
Returns the destroy envelope property. |
java.lang.String |
getHeaderElement()
Returns the headerElement property. |
java.lang.String |
getHost()
Returns the host property. |
java.lang.String |
getNamespace()
Returns the namespace property. |
java.lang.String |
getPort()
Returns the port property. |
java.lang.String |
getProtocol()
Returns the protocol property. |
java.lang.String |
getSOAPAction()
Returns the SOAPAction property. |
java.lang.String |
getUri()
Returns the uri property. |
void |
setContentType(java.lang.String contentType)
Set the contentType property. |
void |
setCreateEnvelope(java.lang.String envelope)
Set the create envelope property. |
void |
setDestroyEnvelope(java.lang.String envelope)
Set the destroy envelope property. |
void |
setHeaderElement(java.lang.String headerElement)
Set the headerElement property. |
void |
setHost(java.lang.String host)
Set the host property. |
void |
setNamespace(java.lang.String namespace)
Set the namespace property. |
void |
setPort(java.lang.String port)
Set the port property. |
void |
setProtocol(java.lang.String protocol)
Set the protocol property. |
void |
setSOAPAction(java.lang.String soapAction)
Set the SOAPAction property. |
void |
setUri(java.lang.String uri)
Set the uri property. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SessionTokenConfig()
public SessionTokenConfig(java.lang.String name, toolbox.allegato.XMLProperties xmlProps) throws toolbox.allegato.ConfException
name
- The name of the configuration instance.xmlProps
- XML configuration properties containing a valid
SiebelSessionConfig
element.
toolbox.allegato.ConfException
- if this object cannot be initialised.Method Detail |
---|
public void setProtocol(java.lang.String protocol)
protocol
- String containing the protocol to use.public java.lang.String getProtocol()
public void setHost(java.lang.String host)
host
- String containing the host to use.public java.lang.String getHost()
public void setPort(java.lang.String port)
port
- String containing the port to use.public java.lang.String getPort()
public void setUri(java.lang.String uri)
uri
- String containing the uri to use.public java.lang.String getUri()
public void setContentType(java.lang.String contentType)
contentType
- String containing the contentType to use.public java.lang.String getContentType()
public void setNamespace(java.lang.String namespace)
namespace
- String containing the namespace to use.public java.lang.String getNamespace()
public void setSOAPAction(java.lang.String soapAction)
soapAction
- String containing the SOAPAction to use.public java.lang.String getSOAPAction()
public void setHeaderElement(java.lang.String headerElement)
headerElement
- String containing the headerElement to use.public java.lang.String getHeaderElement()
public void setCreateEnvelope(java.lang.String envelope)
envelope
- String containing the create envelope to use.public java.lang.String getCreateEnvelope()
public void setDestroyEnvelope(java.lang.String envelope)
envelope
- String containing the destroy envelope to use.public java.lang.String getDestroyEnvelope()
public Token createSessionToken() throws java.io.IOException
java.io.IOException
- when a communication error occurs.public void destroySessionToken(Token token) throws java.io.IOException
token
- Token instance that must be destroyed.
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |