public final class AttributeServlet
extends javax.servlet.http.HttpServlet
AttributeServlet is a servlet which queries an LDAP and returns
the value of a single attribute. Example:
http://www.server.com/Attribute?query=uid=dfisher&attr=givenName If you need
to pass complex queries, such as (&(cn=daniel*)(surname=fisher)), then the
query must be form encoded. The content returned by the servlet is of type
text/plain, if you want to receive the content as application/octet-stream
that can be specified by passing the content-type=octet param. The following
init params can be set for this servlet:
edu.vt.middleware.ldap.servlets.propertiesFile - to load ldap properties from| Constructor and Description |
|---|
AttributeServlet() |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
Called by the servlet container to indicate to a servlet that the servlet
is being taken out of service.
|
void |
init(javax.servlet.ServletConfig config)
Initialize this servlet.
|
void |
service(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Handle all requests sent to this servlet.
|
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, servicepublic void init(javax.servlet.ServletConfig config)
throws javax.servlet.ServletException
init in interface javax.servlet.Servletinit in class javax.servlet.GenericServletconfig - ServletConfigjavax.servlet.ServletException - if an error occurspublic void service(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
IOException
service in class javax.servlet.http.HttpServletrequest - HttpServletRequestresponse - HttpServletResponsejavax.servlet.ServletException - if an error occursIOException - if an error occurspublic void destroy()
destroy in interface javax.servlet.Servletdestroy in class javax.servlet.GenericServletCopyright © 2014. All rights reserved.