|
||||||||||
| 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 HttpBeanrequest - the http request objectresponse - the http response object
java.io.IOException - if an exception is thrown
public void do404(HttpRequest request,
HttpResponse response)
request - the HTTP request objectresponse - the HTTP response object
public 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 browser
public void ejbActivate()
throws javax.ejb.EJBException,
java.rmi.RemoteException
ejbActivate in interface javax.ejb.SessionBeanEJBException - if an exeption is thrown
RemoteException - if an exception is thrown
public void ejbPassivate()
throws javax.ejb.EJBException,
java.rmi.RemoteException
ejbPassivate in interface javax.ejb.SessionBeanEJBException - if an exception is thrown
RemoteException - if an exception is thrown
public void ejbRemove()
throws javax.ejb.EJBException,
java.rmi.RemoteException
ejbRemove in interface javax.ejb.SessionBeanEJBException - if an exception is thrown
RemoteException - if an exception is thrown
public void setSessionContext(javax.ejb.SessionContext sessionContext)
throws javax.ejb.EJBException,
java.rmi.RemoteException
setSessionContext in interface javax.ejb.SessionBeansessionContext - 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 | |||||||||