Package org.opends.dsml.protocol
Class DSMLServlet
- java.lang.Object
-
- javax.servlet.GenericServlet
-
- javax.servlet.http.HttpServlet
-
- org.opends.dsml.protocol.DSMLServlet
-
- All Implemented Interfaces:
Serializable,javax.servlet.Servlet,javax.servlet.ServletConfig
public class DSMLServlet extends javax.servlet.http.HttpServletThis 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
-
-
Constructor Summary
Constructors Constructor Description DSMLServlet()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddoPost(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)The HTTP POST operation.voidinit(javax.servlet.ServletConfig config)This method will be called by the Servlet Container when this servlet is being placed into service.static intnextMessageID()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
-
-
-
-
Method Detail
-
init
public void init(javax.servlet.ServletConfig config) throws javax.servlet.ServletExceptionThis method will be called by the Servlet Container when this servlet is being placed into service.- Specified by:
initin interfacejavax.servlet.Servlet- Overrides:
initin classjavax.servlet.GenericServlet- Parameters:
config- - theServletConfigobject that contains configuration 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, IOExceptionThe HTTP POST operation. This servlet expects a SOAP message with a DSML request payload.- Overrides:
doPostin classjavax.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.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.
-
-