org.aselect.agent.handler
Class TraceRequestHandler

java.lang.Object
  extended by java.lang.Thread
      extended by org.aselect.agent.handler.RequestHandler
          extended by org.aselect.agent.handler.TraceRequestHandler
All Implemented Interfaces:
java.lang.Runnable

public class TraceRequestHandler
extends RequestHandler

Verbosely traces requests and responses.

Description:
This class implements a verbose trace of the requests (and responses) that are handled by the super RequestHandler class that implements the API of the A-Select Agent.

Concurrency issues:
None.

Author:
Alfa & Ariss

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class org.aselect.agent.handler.RequestHandler
_sErrorCode, _systemLogger, MODULE
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
TraceRequestHandler(java.net.Socket oSocket, IClientCommunicator oCommunicator, boolean bAuthorization)
          Create new instance.
 
Method Summary
protected  java.util.Hashtable sendRequestToASelectServer(java.lang.String sUrl, java.util.Hashtable htParamsTable)
          Send a request to the A-Select Server.
 
Methods inherited from class org.aselect.agent.handler.RequestHandler
deserializeAttributes, getClientCommunicator, processRequest, run
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TraceRequestHandler

public TraceRequestHandler(java.net.Socket oSocket,
                           IClientCommunicator oCommunicator,
                           boolean bAuthorization)
Create new instance.

Description:
Creates a new TraceRequestHandler.

Concurrency issues:
Every request should have its own TraceRequestHandler.

Preconditions:
none.

Postconditions:
The module name is set.

Parameters:
oSocket - The communication socket (incoming).
oCommunicator - The communicator (outgoing).
bAuthorization - true if authorization is enabled, otherwise false.
See Also:
RequestHandler.RequestHandler(Socket, IClientCommunicator, boolean)
Method Detail

sendRequestToASelectServer

protected java.util.Hashtable sendRequestToASelectServer(java.lang.String sUrl,
                                                         java.util.Hashtable htParamsTable)
Send a request to the A-Select Server.

Overrides:
sendRequestToASelectServer in class RequestHandler
Parameters:
sUrl - The A-Select Server URL.
htParamsTable - The parameters to send to A-Select.
Returns:
The return parameters in a Hashtable.
See Also:
RequestHandler.sendRequestToASelectServer(java.lang.String, java.util.Hashtable)


Copyright © 2008 SURFnet BV. All Rights Reserved.