com.infoengine.wes
Class Servlet

java.lang.Object
  extended byjavax.servlet.GenericServlet
      extended byjavax.servlet.http.HttpServlet
          extended bycom.infoengine.wes.Servlet
All Implemented Interfaces:
Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class Servlet
extends javax.servlet.http.HttpServlet

This servlet implements a web-based event service for Windchill products including Info*Engine.

See Also:
Serialized Form

Field Summary
private  javax.servlet.ServletConfig config
           
private static String DEFAULT_IE_SERVER_NAME
           
private static String DEFAULT_NAMING_SERVICE_NAME
           
private static String DEFAULT_NOTIFY_TASK
           
private static String DEFAULT_SERVLET_NAME
           
private static String DEFAULT_SUBSCRIBE_TASK
           
private static String DEFAULT_UNSUBSCRIBE_TASK
           
private  String ieServerName
           
private  com.infoengine.log.LogWriter log
           
private  NamingService namingService
           
private  String namingServiceName
           
private  String notifyTask
           
private  String servletName
           
private  String subscribeTask
           
private  Hashtable subscriptions
           
private  String unsubscribeTask
           
 
Fields inherited from class javax.servlet.http.HttpServlet
 
Constructor Summary
Servlet()
           
 
Method Summary
 void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
private  void executeTask(javax.servlet.http.HttpServletRequest request, String taskName)
          Execute a specified Info*Engine business task.
 String getServletInfo()
           
 void init(javax.servlet.ServletConfig config)
           
private  void processNotifyRequest(javax.servlet.http.HttpServletRequest request, String eventId)
          Process a request to post a notification of a specified event.
private  void processSubscribeRequest(javax.servlet.http.HttpServletRequest request, String eventId, String uri)
          Process a request to subscribe to a specified event.
private  void processUnsubscribeRequest(javax.servlet.http.HttpServletRequest request, String eventId, String uri)
          Process a request to unsubscribe from a specified event.
 
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

config

private javax.servlet.ServletConfig config

ieServerName

private String ieServerName

log

private com.infoengine.log.LogWriter log

namingService

private NamingService namingService

namingServiceName

private String namingServiceName

servletName

private String servletName

notifyTask

private String notifyTask

subscribeTask

private String subscribeTask

unsubscribeTask

private String unsubscribeTask

subscriptions

private Hashtable subscriptions

DEFAULT_IE_SERVER_NAME

private static final String DEFAULT_IE_SERVER_NAME
See Also:
Constant Field Values

DEFAULT_NAMING_SERVICE_NAME

private static final String DEFAULT_NAMING_SERVICE_NAME
See Also:
Constant Field Values

DEFAULT_SERVLET_NAME

private static final String DEFAULT_SERVLET_NAME
See Also:
Constant Field Values

DEFAULT_NOTIFY_TASK

private static final String DEFAULT_NOTIFY_TASK
See Also:
Constant Field Values

DEFAULT_SUBSCRIBE_TASK

private static final String DEFAULT_SUBSCRIBE_TASK
See Also:
Constant Field Values

DEFAULT_UNSUBSCRIBE_TASK

private static final String DEFAULT_UNSUBSCRIBE_TASK
See Also:
Constant Field Values
Constructor Detail

Servlet

public Servlet()
Method Detail

init

public void init(javax.servlet.ServletConfig config)
          throws javax.servlet.ServletException
Throws:
javax.servlet.ServletException

getServletInfo

public String getServletInfo()

doGet

public void doGet(javax.servlet.http.HttpServletRequest request,
                  javax.servlet.http.HttpServletResponse response)
           throws IOException
Throws:
IOException

doPost

public void doPost(javax.servlet.http.HttpServletRequest request,
                   javax.servlet.http.HttpServletResponse response)
            throws IOException
Throws:
IOException

processSubscribeRequest

private void processSubscribeRequest(javax.servlet.http.HttpServletRequest request,
                                     String eventId,
                                     String uri)
                              throws IEException
Process a request to subscribe to a specified event.

Throws:
IEException

processUnsubscribeRequest

private void processUnsubscribeRequest(javax.servlet.http.HttpServletRequest request,
                                       String eventId,
                                       String uri)
                                throws IEException
Process a request to unsubscribe from a specified event.

Throws:
IEException

processNotifyRequest

private void processNotifyRequest(javax.servlet.http.HttpServletRequest request,
                                  String eventId)
                           throws IEException
Process a request to post a notification of a specified event.

Throws:
IEException

executeTask

private void executeTask(javax.servlet.http.HttpServletRequest request,
                         String taskName)
                  throws IEException
Execute a specified Info*Engine business task. The context of of the task is derived from the HTTP request object.

Throws:
IEException