org.opends.dsml.protocol
Class DSMLServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.opends.dsml.protocol.DSMLServlet
- All Implemented Interfaces:
- java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
public class DSMLServlet
- extends javax.servlet.http.HttpServlet
This class provides the entry point for the DSML request.
It parses the SOAP request, calls the appropriate class
which performs the LDAP operation, and returns the response
as a DSML response.
- See Also:
- Serialized Form
Method Summary |
void |
doPost(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
The HTTP POST operation. |
void |
init(javax.servlet.ServletConfig config)
This method will be called by the Servlet Container when
this servlet is being placed into service. |
static int |
nextMessageID()
Retrieves a message ID that may be used for the next LDAP message sent to
the Directory Server. |
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, log, log |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DSMLServlet
public DSMLServlet()
init
public void init(javax.servlet.ServletConfig config)
throws javax.servlet.ServletException
- This method will be called by the Servlet Container when
this servlet is being placed into service.
- Specified by:
init
in interface javax.servlet.Servlet
- Overrides:
init
in class javax.servlet.GenericServlet
- Parameters:
config
- - the ServletConfig
object that
contains configutation information for this servlet.
- Throws:
javax.servlet.ServletException
- If an error occurs during processing.
doPost
public void doPost(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
throws javax.servlet.ServletException,
java.io.IOException
- The HTTP POST operation. This servlet expects a SOAP message
with a DSML request payload.
- Overrides:
doPost
in class javax.servlet.http.HttpServlet
- Parameters:
req
- Information about the request received from the client.res
- Information about the response to send to the client.
- Throws:
javax.servlet.ServletException
- If an error occurs during servlet processing.
java.io.IOException
- If an error occurs while interacting with the client.
nextMessageID
public static int nextMessageID()
- Retrieves a message ID that may be used for the next LDAP message sent to
the Directory Server.
- Returns:
- A message ID that may be used for the next LDAP message sent to
the Directory Server.