ibspan.tss.agents.pra.http
Class UserRequestHandler

java.lang.Object
  extended by ibspan.tss.agents.pra.http.UserRequestHandler
All Implemented Interfaces:
Runnable

public class UserRequestHandler
extends Object
implements Runnable

It is a thread that handles the user request. It parses querystring, creates ExternalRequest, passes it to the PrA (uses SynchronousController), receives ExternalResponse, sends the response to the client

Author:
Pawel Kaczmarek

Field Summary
static String UNPROCESSABLE_BY_SYSTEM_URI
           
 
Constructor Summary
UserRequestHandler(SynchronousController listener, Socket socket, String mediaType)
           
 
Method Summary
 void run()
          Parse request, create ExternalRequest, receive ExnternalResponse, send it to the client.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UNPROCESSABLE_BY_SYSTEM_URI

public static final String UNPROCESSABLE_BY_SYSTEM_URI
See Also:
Constant Field Values
Constructor Detail

UserRequestHandler

public UserRequestHandler(SynchronousController listener,
                          Socket socket,
                          String mediaType)
Method Detail

run

public void run()
Parse request, create ExternalRequest, receive ExnternalResponse, send it to the client.

Specified by:
run in interface Runnable