wt.httpgw
Class HTTPAuthGatewayServlet

java.lang.Object
  extended byjavax.servlet.GenericServlet
      extended byjavax.servlet.http.HttpServlet
          extended bywt.httpgw.HTTPGatewayServlet
              extended bywt.httpgw.HTTPAuthGatewayServlet
All Implemented Interfaces:
CGIConstants, Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class HTTPAuthGatewayServlet
extends HTTPGatewayServlet

The servlet front end to the Windchill HTTP gateway. It is intended to server as the authenticating counterpart to the HTTPGatewayServlet. Servlet engines that are capable of setting access restrictions on servlets may do so on this servlet, leaving the HTTPGatewayServlet as the none authenticating servlet interface.

It's counter part is the CGI wrapper WTAUTHCGI.EXE. This servlet gathers and loads the HTTP request headers and parameters before instantiating the HTTPRequest and HTTPGateway objects which are passed to a method server for processing.

See Also:
Serialized Form

Field Summary
private static String WWW_AUTHENTICATE
           
 
Fields inherited from class wt.httpgw.HTTPGatewayServlet
 
Fields inherited from class javax.servlet.http.HttpServlet
 
Fields inherited from class javax.servlet.GenericServlet
 
Fields inherited from interface wt.httpgw.CGIConstants
CGI_ACCEPT, CGI_ACCEPT_CHARSET, CGI_ACCEPT_LANGUAGE, CGI_AUTH_TYPE, CGI_AUTHORIZATION, CGI_CONNECTION, CGI_CONTENT_LENGTH, CGI_CONTENT_TYPE, CGI_CONTEXT_PATH, CGI_DELETE_METHOD, CGI_GATEWAY_INTERFACE, CGI_GET_METHOD, CGI_HEAD_METHOD, CGI_HOST, CGI_IF_MODIFIED_SINCE, CGI_MULTIPART_BOUNDARY, CGI_PATH_INFO, CGI_PATH_TRANSLATED, CGI_POST_METHOD, CGI_PRAGMA, CGI_PROPERTY_PREFIX, CGI_PROTOCOL, CGI_PUT_METHOD, CGI_QUERY_STRING, CGI_REFERER, CGI_REMOTE_ADDR, CGI_REMOTE_HOST, CGI_REMOTE_IDENT, CGI_REMOTE_USER, CGI_REQUEST_METHOD, CGI_SCHEME, CGI_SCRIPT_NAME, CGI_SERVER_NAME, CGI_SERVER_PORT, CGI_SERVER_PROTOCOL, CGI_SERVER_SOFTWARE, CGI_SERVLET_SESSION, CGI_TRACE_METHOD, CGI_UA_COLOR, CGI_UA_CPU, CGI_UA_OS, CGI_UA_PIXELS, CGI_URI, CGI_URL, CGI_USER_AGENT, versionID
 
Constructor Summary
HTTPAuthGatewayServlet()
           
 
Method Summary
protected  String getName()
           
protected  void serviceWithoutFilters(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
          Our protected serviceWithoutFilters method gathers and loads the HTTP headers etc.
 
Methods inherited from class wt.httpgw.HTTPGatewayServlet
destroy, init, service
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service
 
Methods inherited from class javax.servlet.GenericServlet
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

WWW_AUTHENTICATE

private static String WWW_AUTHENTICATE
Constructor Detail

HTTPAuthGatewayServlet

public HTTPAuthGatewayServlet()
Method Detail

getName

protected String getName()
Overrides:
getName in class HTTPGatewayServlet

serviceWithoutFilters

protected void serviceWithoutFilters(javax.servlet.http.HttpServletRequest req,
                                     javax.servlet.http.HttpServletResponse res)
                              throws javax.servlet.ServletException,
                                     IOException
Description copied from class: HTTPGatewayServlet
Our protected serviceWithoutFilters method gathers and loads the HTTP headers etc. into a Properties structure that is passed to the request object constructor. It then instantiates both HTTPRequest and HTTPGateway objects before calling the method server to process the request.

The intent of this method as opposed to service() is that it this method is the raw servlet service handler without any filter application. It is called by service when filters pass the right request to the end of the filter chain.

Overrides:
serviceWithoutFilters in class HTTPGatewayServlet
Throws:
javax.servlet.ServletException
IOException