com.infoengine.wes
Class Servlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
com.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
Fields inherited from class javax.servlet.http.HttpServlet |
|
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 |
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
Servlet
public Servlet()
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