oss.net.pstream.example
Class PstreamServletBaseImpl

java.lang.Object
  |
  +--javax.servlet.GenericServlet
        |
        +--javax.servlet.http.HttpServlet
              |
              +--oss.net.pstream.example.PstreamServletBaseImpl
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public abstract class PstreamServletBaseImpl
extends javax.servlet.http.HttpServlet

The TextServletImple is the PSN implementation of the PortletStreamer code. This class acts as a proxy.

Title: CPS Website

Description: The website for CPS.

Copyright: Copyright (c) 2002

Company: CTI, Inc.

Version:
1.0
Author:
Matt Gregory
See Also:
Serialized Form

Constructor Summary
PstreamServletBaseImpl()
           
 
Method Summary
 void destroy()
           
protected  void doDelete(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Implementation of the servlet doGet function, passes off to the handle function
protected  void doHead(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
protected  void doOptions(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Implementation of the servlet doPost function, passes off to the handle function
protected  void doPut(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
protected  void doTrace(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
protected  long getLastModified(javax.servlet.http.HttpServletRequest request)
           
abstract  java.lang.String getPoolName()
          All implementing servlets must return the JNDI name of the pool which should be used for rendering content.
 void handle(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.apache.commons.httpclient.HttpMethodBase method)
          The current standard implementation of the streamer for handling servlet requests.
 
Methods inherited from class javax.servlet.http.HttpServlet
service, service
 
Methods inherited from class javax.servlet.GenericServlet
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PstreamServletBaseImpl

public PstreamServletBaseImpl()
Method Detail

getPoolName

public abstract java.lang.String getPoolName()
All implementing servlets must return the JNDI name of the pool which should be used for rendering content.


doGet

public void doGet(javax.servlet.http.HttpServletRequest request,
                  javax.servlet.http.HttpServletResponse response)
           throws javax.servlet.ServletException,
                  java.io.IOException
Implementation of the servlet doGet function, passes off to the handle function

Overrides:
doGet in class javax.servlet.http.HttpServlet
javax.servlet.ServletException
java.io.IOException

doPost

public void doPost(javax.servlet.http.HttpServletRequest request,
                   javax.servlet.http.HttpServletResponse response)
            throws javax.servlet.ServletException,
                   java.io.IOException
Implementation of the servlet doPost function, passes off to the handle function

Overrides:
doPost in class javax.servlet.http.HttpServlet
javax.servlet.ServletException
java.io.IOException

handle

public void handle(javax.servlet.http.HttpServletRequest request,
                   javax.servlet.http.HttpServletResponse response,
                   org.apache.commons.httpclient.HttpMethodBase method)
            throws javax.servlet.ServletException
The current standard implementation of the streamer for handling servlet requests. Because if this "standard" implementation, form posts will not work properly. At some point I would like to come back and fix this problem.

Parameters:
request - The request object
response - The response object
Throws:
javax.servlet.ServletException - if anything goes kab00m while running.

destroy

public void destroy()
Specified by:
destroy in interface javax.servlet.Servlet
Overrides:
destroy in class javax.servlet.GenericServlet

getLastModified

protected long getLastModified(javax.servlet.http.HttpServletRequest request)
Overrides:
getLastModified in class javax.servlet.http.HttpServlet
See Also:
HttpServlet.getLastModified(HttpServletRequest)

doDelete

protected void doDelete(javax.servlet.http.HttpServletRequest request,
                        javax.servlet.http.HttpServletResponse response)
                 throws javax.servlet.ServletException,
                        java.io.IOException
Overrides:
doDelete in class javax.servlet.http.HttpServlet
javax.servlet.ServletException
java.io.IOException
See Also:
HttpServlet.doDelete(HttpServletRequest, HttpServletResponse)

doHead

protected void doHead(javax.servlet.http.HttpServletRequest request,
                      javax.servlet.http.HttpServletResponse response)
               throws javax.servlet.ServletException,
                      java.io.IOException
Overrides:
doHead in class javax.servlet.http.HttpServlet
javax.servlet.ServletException
java.io.IOException
See Also:
HttpServlet.doHead(HttpServletRequest, HttpServletResponse)

doOptions

protected void doOptions(javax.servlet.http.HttpServletRequest request,
                         javax.servlet.http.HttpServletResponse response)
                  throws javax.servlet.ServletException,
                         java.io.IOException
Overrides:
doOptions in class javax.servlet.http.HttpServlet
javax.servlet.ServletException
java.io.IOException
See Also:
HttpServlet.doOptions(HttpServletRequest, HttpServletResponse)

doPut

protected void doPut(javax.servlet.http.HttpServletRequest request,
                     javax.servlet.http.HttpServletResponse response)
              throws javax.servlet.ServletException,
                     java.io.IOException
Overrides:
doPut in class javax.servlet.http.HttpServlet
javax.servlet.ServletException
java.io.IOException
See Also:
HttpServlet.doPut(HttpServletRequest, HttpServletResponse)

doTrace

protected void doTrace(javax.servlet.http.HttpServletRequest request,
                       javax.servlet.http.HttpServletResponse response)
                throws javax.servlet.ServletException,
                       java.io.IOException
Overrides:
doTrace in class javax.servlet.http.HttpServlet
javax.servlet.ServletException
java.io.IOException
See Also:
HttpServlet.doTrace(HttpServletRequest, HttpServletResponse)


Copyright © 2000 Dummy Corp. All Rights Reserved.