|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.servlet.GenericServlet javax.servlet.http.HttpServlet org.melati.servlet.ConfigServlet org.melati.servlet.PoemServlet org.melati.servlet.TemplateServlet org.melati.example.contacts.ContactsServlet org.melati.example.contacts.ContactView
public class ContactView
Example servlet to display or edit a contact and its categories.
Field Summary |
---|
Fields inherited from class org.melati.servlet.TemplateServlet |
---|
templateEngine |
Fields inherited from class org.melati.servlet.ConfigServlet |
---|
melatiConfig, sysAdminEmail, sysAdminName |
Constructor Summary | |
---|---|
ContactView()
|
Method Summary | |
---|---|
void |
deleteCategories(ContactsDatabase db,
Contact contact)
Remove all categories associated with a Contact. |
protected String |
doTemplateRequest(Melati melati,
ServletTemplateContext context)
|
protected PoemContext |
poemContext(Melati melati)
|
Methods inherited from class org.melati.example.contacts.ContactsServlet |
---|
getSysAdminEmail, getSysAdminName |
Methods inherited from class org.melati.servlet.TemplateServlet |
---|
addExtension, doPoemRequest, error, init, prePoemSession |
Methods inherited from class org.melati.servlet.PoemServlet |
---|
_handleException, destroy, doConfiguredRequest, handleException, poemContextWithLDB |
Methods inherited from class org.melati.servlet.ConfigServlet |
---|
doGet, doPost, httpStatusCode, melatiConfig, setSysAdminEmail, setSysAdminName, writeConnectionPendingException, writeError |
Methods inherited from class javax.servlet.http.HttpServlet |
---|
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service |
Methods inherited from class javax.servlet.GenericServlet |
---|
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 |
Constructor Detail |
---|
public ContactView()
Method Detail |
---|
protected String doTemplateRequest(Melati melati, ServletTemplateContext context) throws Exception
doTemplateRequest
in class TemplateServlet
Exception
public void deleteCategories(ContactsDatabase db, Contact contact)
db
- the ContactsDatabase
contact
- the Contact
protected PoemContext poemContext(Melati melati) throws PathInfoException
poemContext
in class PoemServlet
PathInfoException
|
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |