com.mentata.sg8
Class link
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
com.mentata.sg8.SG8Servlet
com.mentata.sg8.link
- All Implemented Interfaces:
- Serializable, Servlet, ServletConfig
- public class link
- extends SG8Servlet
A servlet for updating distinguished name associations in the database.
This servlet enables users to find and add new entries in the database to the values of a distinguished name attribute. If the request does not name a context and object, the servlet will throw an exception. If the session does not contain an authenticated connection to the given context the path is stored in the session and the request is forwarded to the authenticate JSP. If the input does not define an identifier, a corresponding SG8Search bean is constructed and passed through the session to the search JSP. If the input defines an identifier but not an attribute, a corresponding SG8Discovery bean is constructed and passed to the pick JSP. If an attribute is specified but no search criteria or target identifiers, an SG8Change bean for the identified entry and an SG8Search bean for the attribute's target object are constructed and passed to the seek JSP, which will in turn launch a request back to the link servlet with search criteria. The search results are packed into an SG8Search bean and again passed with an SG8Change bean for the identified entry to the associate JSP, which generates an appropriate attribute update form which calls the update servlet directly to make the changes.
- Since:
- 0.7
- Author:
- Jon Roberts
- See Also:
- Serialized Form
|
Constructor Summary |
link()
|
| 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 |
link
public link()
doGet
public void doGet(HttpServletRequest req,
HttpServletResponse res)
throws ServletException,
IOException
- Forwards the request to the modify JSP.
- Overrides:
doGet in class SG8Servlet
- Parameters:
req - the servlet requestres - the servlet response
- Throws:
ServletException - if the request is inappropriate
IOException
doPost
public void doPost(HttpServletRequest req,
HttpServletResponse res)
throws ServletException,
IOException
- Searches target for new attribute values and forwards results to associate JSP.
- Overrides:
doPost in class SG8Servlet
- Parameters:
req - the servlet requestres - the servlet response
- Throws:
ServletException - if the request is inappropriate or the target search fails
IOException