org.tranche.httpd
Interface IHttpHandler

All Known Implementing Classes:
AbstractHttpHandler, GetHandler

public interface IHttpHandler

Interface for a class implementing a handler for an HTTP request. e.g. GET

Author:
Takis Papoulias

Method Summary
 void handle()
          The details of handling a HTTP request are implemented here.
 void setHeaderPV(java.util.HashMap<java.lang.String,java.lang.String> paramValMap)
          The param value pair that was passed by the browser.
 void setHttpVersion(java.lang.String ver)
          Setter method for the version of HTTP used by the browser.
 void setIn(java.io.BufferedReader br)
          Setter method for the input stream from the browser.
 void setOut(java.io.PrintStream os)
          Setter method for the output stream to the browser.
 void setRequestCode(java.lang.String rc)
          Setter method for the request code from the browser.
 void setRequestName(java.lang.String rn)
          Setter method for the name of the request.
 

Method Detail

handle

void handle()
            throws java.io.IOException
The details of handling a HTTP request are implemented here.

Throws:
java.io.IOException

setOut

void setOut(java.io.PrintStream os)
Setter method for the output stream to the browser.

Parameters:
os -

setIn

void setIn(java.io.BufferedReader br)
Setter method for the input stream from the browser.

Parameters:
br -

setHeaderPV

void setHeaderPV(java.util.HashMap<java.lang.String,java.lang.String> paramValMap)
The param value pair that was passed by the browser.

Parameters:
paramValMap -

setRequestCode

void setRequestCode(java.lang.String rc)
Setter method for the request code from the browser.

Parameters:
rc -

setRequestName

void setRequestName(java.lang.String rn)
Setter method for the name of the request.

Parameters:
rn -

setHttpVersion

void setHttpVersion(java.lang.String ver)
Setter method for the version of HTTP used by the browser.

Parameters:
ver -


This code is free for use both commercially and non-commercially as stated in the project's license