com.objectxp.mms.protocol
Class MM7ReceiverServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
com.objectxp.mms.protocol.MM7ReceiverServlet
- All Implemented Interfaces:
- java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
public abstract class MM7ReceiverServlet
- extends javax.servlet.http.HttpServlet
This class can be used for receiving multimedia messages and reports over the
MM7 protocol.
When using MM7 for multimedia message reception in a J2EE webapplication,
you must extend this class and implement the getService() method.
Your derived servlet must be installed in the Servlet-Container and the MM7
MMSC must be informed about the URL of this servlet so that it can deliver
messages / reports to your application.
- Since:
- jSMS 2.2
- See Also:
- Serialized Form
|
Method Summary |
void |
doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Process an HTTP POST request. |
abstract MMSService |
getService()
Return the MMSService instance that processes incoming messages / reports
(by means of the registered MMSListener). |
static boolean |
isMM7Request(javax.servlet.http.HttpServletRequest request)
Determine if a Request is a MM7 POST request from a MMSC. |
| Methods inherited from class javax.servlet.http.HttpServlet |
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 |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MM7ReceiverServlet
public MM7ReceiverServlet()
doPost
public void doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
java.io.IOException
- Process an HTTP POST request. This method will parse the MM7 SOAP Request, extract
the embedded message or report and invokes the corresponding method of the
MMSListener implementation for a specific MMS Service.
If no MMSListener is available, this method will respond with the
HTTP Server Response Code 503 (Service Unavailable).
- Overrides:
doPost in class javax.servlet.http.HttpServlet
- Parameters:
request - The HTTP request objectresponse - The HTTP Response object
- Throws:
javax.servlet.ServletException - if the Request could not be processed.
java.io.IOException - if an I/O error occurred.
getService
public abstract MMSService getService()
- Return the MMSService instance that processes incoming messages / reports
(by means of the registered
MMSListener).
isMM7Request
public static boolean isMM7Request(javax.servlet.http.HttpServletRequest request)
- Determine if a Request is a MM7 POST request from a MMSC.
- Parameters:
request - the request to examine.
- Returns:
- true if it is a MM7 request.
object XP, Inc. © 2000-2008. All rights reserved object XP