infoservice
Interface JWSInternalCommands

All Known Implementing Classes:
InfoServiceCommands

public interface JWSInternalCommands

This is the definition for all implementations handling HTTP requests from the InfoServiceConnection.


Method Summary
 HttpResponseStructure processCommand(int method, int a_supportedEncodings, java.lang.String command, byte[] postData, java.net.InetAddress a_sourceAddress)
          This is definition of the handler for processing an HTTP request.
 

Method Detail

processCommand

HttpResponseStructure processCommand(int method,
                                     int a_supportedEncodings,
                                     java.lang.String command,
                                     byte[] postData,
                                     java.net.InetAddress a_sourceAddress)
This is definition of the handler for processing an HTTP request.

Parameters:
method - The HTTP method used within the request from the client. See the REQUEST_METHOD constants in anon.infoservice.Constants.
a_supportedEncodings - The HTTP encodings supported by the client. See the HTTP_ENCODING constants in HttpResonseStructure.
command - The URL requested from the client within the HTTP request. Normally this should be an absolute path with a filename.
postData - The HTTP content data (maybe of size 0), if the request was an HTTP POST. If the HTTP method was not POST, this value is always null.
a_sourceAddress - The internet address from where we have received the request. It is the address of the other end of the socket connection, so maybe it is only the address of a proxy.
Returns:
The response to send back to the client. This value is null, if the request cannot be handled by the implementation (maybe because of an invalid command, ...).