at.gv.egovernment.moa.spss.server.transaction
Class TransactionContext

java.lang.Object
  |
  +--at.gv.egovernment.moa.spss.server.transaction.TransactionContext

public class TransactionContext
extends Object

Contains information about the current request.

Author:
Stefan Knirsch, Patrick Peck

Constructor Summary
TransactionContext(String transactionID, X509Certificate[] clientCertificate, ConfigurationProvider configuration)
          Create a TransactionContext object.
 
Method Summary
 X509Certificate[] getClientCertificate()
          Returns the client certificate.
 ConfigurationProvider getConfiguration()
          Returns the ConfigurationProvider associated with this transaction.
 String getRequestName()
          Returns the name of the request.
 String getTransactionID()
          Returns the unique transaction ID.
 void setRequestName(String requestName)
          Sets the name of the request.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransactionContext

public TransactionContext(String transactionID,
                          X509Certificate[] clientCertificate,
                          ConfigurationProvider configuration)
Create a TransactionContext object.
Parameters:
transactionID - A unique ID for this TransactionContext.
clientCertificate - The client certificate chain.
configuration - The MOA configuration to use for this transaction.
Method Detail

getClientCertificate

public X509Certificate[] getClientCertificate()
Returns the client certificate.
Returns:
The client certificate chain, if SSL client authentication has been configured in the web server and has been used by the client. The 0th element of the array contains the client certificate. null otherwise.

getTransactionID

public String getTransactionID()
Returns the unique transaction ID.
Returns:
The transaction ID.

getRequestName

public String getRequestName()
Returns the name of the request.
Returns:
The name of the request.

setRequestName

public void setRequestName(String requestName)
Sets the name of the request.
Parameters:
requestName - The request name to set.

getConfiguration

public ConfigurationProvider getConfiguration()
Returns the ConfigurationProvider associated with this transaction.
Returns:
The ConfigurationProvider associated with this transaction.