com.infodesire.infobit.servlet
Class BinaryServlet

java.lang.Object
  |
  +--javax.servlet.GenericServlet
        |
        +--javax.servlet.http.HttpServlet
              |
              +--com.infodesire.infobit.servlet.BinaryServlet
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class BinaryServlet
extends javax.servlet.http.HttpServlet

Servlet capable to emit binary content of infobit versions. The servlet supports get/post methids and does no more than just stream out binary content with appropriate ( set in content ) mime type.

Version:
$Revision: 1.4 $
Author:
peter2
See Also:
Serialized Form

Field Summary
static java.lang.String POOL_NAME
          parameter specifying which infobit pool is to be used
 
Constructor Summary
BinaryServlet()
           
 
Method Summary
 void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Handles GET - calls doRequest()
 void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Handle a POST request - calls doRequest()
protected  void doRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Handles with both GET and POST requests.
 void init(javax.servlet.ServletConfig config)
          initialize servlet for binary infobit streaming
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

POOL_NAME

public static final java.lang.String POOL_NAME
parameter specifying which infobit pool is to be used

See Also:
Constant Field Values
Constructor Detail

BinaryServlet

public BinaryServlet()
Method Detail

init

public void init(javax.servlet.ServletConfig config)
          throws javax.servlet.ServletException
initialize servlet for binary infobit streaming

Specified by:
init in interface javax.servlet.Servlet
Overrides:
init in class javax.servlet.GenericServlet
Parameters:
config - Description of Parameter
Throws:
javax.servlet.ServletException - Description of Exception

doGet

public void doGet(javax.servlet.http.HttpServletRequest request,
                  javax.servlet.http.HttpServletResponse response)
           throws javax.servlet.ServletException,
                  java.io.IOException
Handles GET - calls doRequest()

Overrides:
doGet in class javax.servlet.http.HttpServlet
Parameters:
request - servlet request
response - response
Throws:
javax.servlet.ServletException - Description of Exception
java.io.IOException - Description of Exception

doPost

public void doPost(javax.servlet.http.HttpServletRequest request,
                   javax.servlet.http.HttpServletResponse response)
            throws javax.servlet.ServletException,
                   java.io.IOException
Handle a POST request - calls doRequest()

Overrides:
doPost in class javax.servlet.http.HttpServlet
Parameters:
request - Description of Parameter
response - Description of Parameter
Throws:
javax.servlet.ServletException - Description of Exception
java.io.IOException - Description of Exception

doRequest

protected void doRequest(javax.servlet.http.HttpServletRequest request,
                         javax.servlet.http.HttpServletResponse response)
                  throws javax.servlet.ServletException,
                         java.io.IOException
Handles with both GET and POST requests. we just render infobit out using renderer

Parameters:
request - HttpServletRequest object containing client request
response - HttpServletResponse object for the response
Throws:
javax.servlet.ServletException - Description of Exception
java.io.IOException - Description of Exception


Copyright © 2003 Information Desire GmbH. All Rights Reserved.