org.ow2.petals.binding.soap.listener.incoming.servlet
Class SubscriptionServiceServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.ow2.petals.binding.soap.listener.incoming.servlet.SubscriptionServiceServlet
- All Implemented Interfaces:
- java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
public class SubscriptionServiceServlet
- extends javax.servlet.http.HttpServlet
Servlet used to handle incoming WSN calls. The incoming calls are
subscription to WS notifications. They are handled by the WSN isolation
layer.
- Author:
- chamerling - eBM WebSourcing
- See Also:
- Serialized Form
|
Method Summary |
protected org.apache.axiom.soap.SOAPEnvelope |
createFaultResponse(java.lang.String message)
Handle an exception. |
protected void |
doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
|
protected void |
sendResponse(org.apache.axiom.om.OMElement soapResponse,
javax.servlet.http.HttpServletResponse httpResponse)
Send the response |
| Methods inherited from class javax.servlet.http.HttpServlet |
doDelete, doGet, doHead, doOptions, doPut, doTrace, getLastModified, service, service |
| Methods inherited from class javax.servlet.GenericServlet |
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SubscriptionServiceServlet
public SubscriptionServiceServlet(org.ow2.petals.ws.notification.WsnIsolationLayer isolation,
java.util.logging.Logger logger)
- Creates a new instance of
SubscriptionServiceServlet
- Parameters:
- -
doPost
protected void doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
java.io.IOException
- Overrides:
doPost in class javax.servlet.http.HttpServlet
- Throws:
javax.servlet.ServletException
java.io.IOException
createFaultResponse
protected org.apache.axiom.soap.SOAPEnvelope createFaultResponse(java.lang.String message)
- Handle an exception. A WS subscription error will be sent to the WSN
client.
- Parameters:
message -
- Returns:
- a
SOAPEnvelope with the SOAP fault
sendResponse
protected void sendResponse(org.apache.axiom.om.OMElement soapResponse,
javax.servlet.http.HttpServletResponse httpResponse)
throws javax.xml.stream.XMLStreamException,
java.io.IOException
- Send the response
- Parameters:
soapResponse - httpResponse -
- Throws:
javax.servlet.ServletException
javax.xml.stream.XMLStreamException
java.io.IOException
Copyright © 2005-2010 OW2 Consortium. All Rights Reserved.