|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openejb.webadmin.httpd.DefaultHttpBean
public class DefaultHttpBean
This is a webadmin bean which has default functionality such as genderating error pages and setting page content.
Constructor Summary | |
---|---|
DefaultHttpBean()
|
Method Summary | |
---|---|
void |
do404(HttpRequest request,
HttpResponse response)
Creates a "Page not found" error screen |
void |
do500(HttpRequest request,
HttpResponse response,
java.lang.String message)
Creates and "Internal Server Error" page |
void |
ejbActivate()
called on a stateful sessionbean after the bean is deserialized from storage and put back into use. |
void |
ejbCreate()
Creates a new instance |
void |
ejbPassivate()
called on a stateful sessionbean before the bean is removed from memory and serialized to a temporary store. |
void |
ejbRemove()
called by the ejb container when this bean is about to be garbage collected |
void |
onMessage(HttpRequest request,
HttpResponse response)
the main processing part of the this bean |
void |
setSessionContext(javax.ejb.SessionContext sessionContext)
sets the session context for this bean |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultHttpBean()
Method Detail |
---|
public void ejbCreate()
public void onMessage(HttpRequest request, HttpResponse response) throws java.io.IOException
onMessage
in interface HttpBean
request
- the http request objectresponse
- the http response object
java.io.IOException
- if an exception is thrownpublic void do404(HttpRequest request, HttpResponse response)
request
- the HTTP request objectresponse
- the HTTP response objectpublic void do500(HttpRequest request, HttpResponse response, java.lang.String message)
request
- the HTTP request objectresponse
- the HTTP response objectmessage
- the message to be sent back to the browserpublic void ejbActivate() throws javax.ejb.EJBException, java.rmi.RemoteException
ejbActivate
in interface javax.ejb.SessionBean
EJBException
- if an exeption is thrown
RemoteException
- if an exception is thrownpublic void ejbPassivate() throws javax.ejb.EJBException, java.rmi.RemoteException
ejbPassivate
in interface javax.ejb.SessionBean
EJBException
- if an exception is thrown
RemoteException
- if an exception is thrownpublic void ejbRemove() throws javax.ejb.EJBException, java.rmi.RemoteException
ejbRemove
in interface javax.ejb.SessionBean
EJBException
- if an exception is thrown
RemoteException
- if an exception is thrownpublic void setSessionContext(javax.ejb.SessionContext sessionContext) throws javax.ejb.EJBException, java.rmi.RemoteException
setSessionContext
in interface javax.ejb.SessionBean
sessionContext
- the session context to be set
EJBException
- if an exception is thrown
RemoteException
- if an exception is thrown
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |