Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.prolifics.servlet
Class ProlificsHttpServlet  view ProlificsHttpServlet download ProlificsHttpServlet.java

java.lang.Object
  extended byjavax.servlet.GenericServlet
      extended byjavax.servlet.http.HttpServlet
          extended bycom.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)
	

Version:
@(#)ProlificsHttpServlet.java 77.12 00/05/18 17:04:14

Field Summary
private static java.lang.Boolean allowChunking
           
private static int EOF
           
private static byte nul
           
private static java.lang.String sccsid
           
private static int WEB_CLIENT_ARGUMENTS
           
private static int WEB_CLIENT_CLEAN
           
private static int WEB_CLIENT_END_LIST
           
private static int WEB_CLIENT_ENVIRONMENT
           
private static int WEB_CLIENT_UNDEFINED
           
 
Fields inherited from class javax.servlet.http.HttpServlet
 
Fields inherited from class javax.servlet.GenericServlet
 
Constructor Summary
ProlificsHttpServlet()
           
 
Method Summary
private static int copystrtoba(byte[] dst, int offset, java.lang.String src)
           
 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.
private  javax.servlet.ServletOutputStream getOut(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, java.lang.Boolean chunked)
           
private static java.lang.String getServerURL(javax.servlet.http.HttpServletRequest req)
           
 java.lang.String getServletInfo()
          Describes the servlet.
 void init(javax.servlet.ServletConfig config)
          Called by the servlet container to indicate to a servlet that the servlet is being placed into service.
private  void sendRequest(java.lang.String WebAppName, int content_len, java.io.InputStream in, java.io.OutputStream so, HttpEnv env)
           
 
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, getServletName, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sccsid

private static java.lang.String sccsid

allowChunking

private static java.lang.Boolean allowChunking

nul

private static final byte nul
See Also:
Constant Field Values

EOF

private static final int EOF
See Also:
Constant Field Values

WEB_CLIENT_UNDEFINED

private static final int WEB_CLIENT_UNDEFINED
See Also:
Constant Field Values

WEB_CLIENT_END_LIST

private static final int WEB_CLIENT_END_LIST
See Also:
Constant Field Values

WEB_CLIENT_ARGUMENTS

private static final int WEB_CLIENT_ARGUMENTS
See Also:
Constant Field Values

WEB_CLIENT_ENVIRONMENT

private static final int WEB_CLIENT_ENVIRONMENT
See Also:
Constant Field Values

WEB_CLIENT_CLEAN

private static final int WEB_CLIENT_CLEAN
See Also:
Constant Field Values
Constructor Detail

ProlificsHttpServlet

public ProlificsHttpServlet()
Method Detail

sendRequest

private void sendRequest(java.lang.String WebAppName,
                         int content_len,
                         java.io.InputStream in,
                         java.io.OutputStream so,
                         HttpEnv env)
                  throws java.io.IOException

init

public void init(javax.servlet.ServletConfig config)
          throws javax.servlet.ServletException
Description copied from class: javax.servlet.GenericServlet
Called by the servlet container to indicate to a servlet that the servlet is being placed into service. See Servlet.init(javax.servlet.ServletConfig)>Servlet.init(javax.servlet.ServletConfig) 55 .

This implementation stores the javax.servlet.ServletConfig object it receives from the servlet container for later use. When overriding this form of the method, call super.init(config).


getOut

private javax.servlet.ServletOutputStream getOut(javax.servlet.http.HttpServletRequest req,
                                                 javax.servlet.http.HttpServletResponse res,
                                                 java.lang.Boolean chunked)
                                          throws java.io.IOException

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.


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.


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.


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.


getServletInfo

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


copystrtoba

private static int copystrtoba(byte[] dst,
                               int offset,
                               java.lang.String src)

getServerURL

private static java.lang.String getServerURL(javax.servlet.http.HttpServletRequest req)