com.prolifics.servlet
Class ProlificsHttpServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by com.prolifics.servlet.ProlificsHttpServlet
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class ProlificsHttpServlet
extends javax.servlet.http.HttpServlet

Prolifics servlet. This servlet passes the HTTP requests to a Prolifics application, and outputs the result from the Prolifics application to the browser.

The following methods in HttpServletRequest are used by ProlificsHttpServlet (see the Sun Servlet documentation for details):

                String                  getAuthType()
                int                     getContentLength()
                String                  getContentType()
                Cookie[]                getCookies()
                String                  getHeader(String name)
                Enumeration             getHeaderNames()
                ServletInputStream      getInputStream()
                String                  getMethod()
                String                  getPathInfo()
                String                  getPathTranslated()
                String                  getProtocol()
                String                  getQueryString()
                String                  getRemoteAddr()
                String                  getRemoteHost()
                String                  getRemoteUser()
                String                  getRequestURI()
                String                  getServerName()
                int                     getServerPort()
                String                  getServletPath()
        

The following methods in HttpServletResponse are used by ProlificsHttpServlet (see the Sun Servlet documentation for details):
 #              void                    addCookie(Cookie cookie)
                ServletOutputStream     getOutputStream()
                void                    setContentLength(int length)
                void                    setContentType(String type)
                void                    setHeader(String name, String value)
                void                    setStatus(int)
                void                    setStatus(int code, String message)
        

See Also:
Serialized Form

Constructor Summary
ProlificsHttpServlet()
           
 
Method Summary
 void doDelete(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
          Passes the DELETE request to a Prolifics application.
 void doGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
          Passes the GET request to a Prolifics application.
 void doGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, java.lang.String appname, java.lang.Boolean chunked)
          Passes the GET request to a Prolifics application.
 void doPost(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
          Passes the POST request to a Prolifics application.
 void doPost(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, java.lang.String appname, java.lang.Boolean chunked)
          Passes the POST request to a Prolifics application.
 void doPut(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
          Passes the PUT request to a Prolifics application.
 java.lang.String getServletInfo()
          Describes the servlet.
 void init(javax.servlet.ServletConfig config)
           
 
Methods inherited from class javax.servlet.http.HttpServlet
doOptions, doTrace, getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletName, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProlificsHttpServlet

public ProlificsHttpServlet()
Method Detail

init

public void init(javax.servlet.ServletConfig config)
          throws javax.servlet.ServletException
Specified by:
init in interface javax.servlet.Servlet
Overrides:
init in class javax.servlet.GenericServlet
Throws:
javax.servlet.ServletException

doGet

public void doGet(javax.servlet.http.HttpServletRequest req,
                  javax.servlet.http.HttpServletResponse res)
           throws javax.servlet.ServletException,
                  java.io.IOException
Passes the GET request to a Prolifics application.

Overrides:
doGet in class javax.servlet.http.HttpServlet
Parameters:
req - The request object
res - The response object
Throws:
java.io.IOException - IOException.
javax.servlet.ServletException - ServletException.

doGet

public void doGet(javax.servlet.http.HttpServletRequest req,
                  javax.servlet.http.HttpServletResponse res,
                  java.lang.String appname,
                  java.lang.Boolean chunked)
           throws javax.servlet.ServletException,
                  java.io.IOException
Passes the GET request to a Prolifics application.

Parameters:
req - The request object.
res - The response object.
appname - The name of the Prolifics application that should handle the request.
chunked - Controls the use of Transfer-encoding: chunked.
  • TRUE = chunked
  • FALSE = not chunked
  • null = decide automatically
Throws:
java.io.IOException - IOException.
javax.servlet.ServletException - ServletException.

doPost

public void doPost(javax.servlet.http.HttpServletRequest req,
                   javax.servlet.http.HttpServletResponse res)
            throws javax.servlet.ServletException,
                   java.io.IOException
Passes the POST request to a Prolifics application.

Overrides:
doPost in class javax.servlet.http.HttpServlet
Parameters:
req - The request object
res - The response object
Throws:
java.io.IOException - IOException.
javax.servlet.ServletException - ServletException.

doPost

public void doPost(javax.servlet.http.HttpServletRequest req,
                   javax.servlet.http.HttpServletResponse res,
                   java.lang.String appname,
                   java.lang.Boolean chunked)
            throws javax.servlet.ServletException,
                   java.io.IOException
Passes the POST request to a Prolifics application.

Parameters:
req - The request object.
res - The response object.
appname - The name of the Prolifics application that should handle the request.
chunked - Controls the use of Transfer-encoding: chunked.
  • TRUE = chunked
  • FALSE = not chunked
  • null = decide automatically
Throws:
java.io.IOException - IOException.
javax.servlet.ServletException - ServletException.

getServletInfo

public java.lang.String getServletInfo()
Describes the servlet.

Specified by:
getServletInfo in interface javax.servlet.Servlet
Overrides:
getServletInfo in class javax.servlet.GenericServlet

doDelete

public void doDelete(javax.servlet.http.HttpServletRequest req,
                     javax.servlet.http.HttpServletResponse res)
              throws javax.servlet.ServletException,
                     java.io.IOException
Passes the DELETE request to a Prolifics application.

Overrides:
doDelete in class javax.servlet.http.HttpServlet
Parameters:
req - The request object
res - The response object
Throws:
java.io.IOException - IOException.
javax.servlet.ServletException - ServletException.

doPut

public void doPut(javax.servlet.http.HttpServletRequest req,
                  javax.servlet.http.HttpServletResponse res)
           throws javax.servlet.ServletException,
                  java.io.IOException
Passes the PUT request to a Prolifics application.

Overrides:
doPut in class javax.servlet.http.HttpServlet
Parameters:
req - The request object
res - The response object
Throws:
java.io.IOException - IOException.
javax.servlet.ServletException - ServletException.