|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openmdx.security.auth.servlet.spi.AbstractHandler
public abstract class AbstractHandler
Abstract Handler
| Constructor Summary | |
|---|---|
protected |
AbstractHandler()
Constructor |
| Method Summary | |
|---|---|
protected boolean |
debugDefault()
Provide the "debug" default value. |
void |
destroy()
Called by the servlet to indicate to a HTTP handler that the servlet is being taken out of service. |
protected void |
endBody(Writer html)
Write the BODY's start tag. |
protected void |
endDocument(Writer html)
End a document |
protected void |
endHead(Writer html)
Write the HEAD's end tag. |
String |
getInitParameter(String name)
|
protected boolean |
getInitParameter(String name,
boolean defaultValue)
Retrieve an init parameter or its default value |
protected int |
getInitParameter(String name,
int defaultValue)
Retrieve an init parameter or its default value |
protected long |
getInitParameter(String name,
long defaultValue)
Retrieve an init parameter or its default value |
protected String |
getInitParameter(String name,
String defaultValue)
Retrieve an init parameter or its default value |
Enumeration |
getInitParameterNames()
|
ServletContext |
getServletContext()
|
String |
getServletName()
|
protected void |
init()
A convenience method which can be overridden so that there's no need to call super.init(config). |
void |
init(ServletConfig configuration)
Use the Servlet's configuration to initialize the handler. |
protected boolean |
isDebug()
Tells whether debugging is enabled or not. |
protected void |
log(String message)
|
protected void |
log(String message,
Throwable throwable)
|
protected void |
startBody(Writer html)
Write the BODY's start tag. |
protected Writer |
startDocument(HttpServletResponse response)
Start a document |
protected void |
startHead(Writer html)
Write the HEAD's start tag including its META element. |
protected static void |
writeEncoded(Writer html,
String text)
Apply HTTP encoding to the text before writing it. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected AbstractHandler()
| Method Detail |
|---|
protected boolean isDebug()
true if debugging is enabled
public void init(ServletConfig configuration)
throws ServletException
Servlet's configuration to initialize the handler.
init in interface HttpHandlerconfiguration - TODO
ServletException
protected void init()
throws ServletException
super.init(config).
Instead of overriding init(ServletConfig), simply override
this method and it will be called by
AbstractHandler.init(ServletConfig).
ServletException
protected final String getInitParameter(String name,
String defaultValue)
name - the parameter namedefaultValue - the parameter's default value
null
protected final int getInitParameter(String name,
int defaultValue)
name - the parameter namedefaultValue - the parameter's default value
null
protected final long getInitParameter(String name,
long defaultValue)
name - the parameter namedefaultValue - the parameter's default value
null
protected final boolean getInitParameter(String name,
boolean defaultValue)
name - the parameter namedefaultValue - the parameter's default value
nullpublic final String getInitParameter(String name)
getInitParameter in interface ServletConfigpublic final Enumeration getInitParameterNames()
getInitParameterNames in interface ServletConfigpublic final ServletContext getServletContext()
getServletContext in interface ServletConfigpublic final String getServletName()
getServletName in interface ServletConfigpublic void destroy()
HttpHandlerThis method gives the HTTP hanlder an opportunity to clean up any resources that are being held (for example, memory, file handles, threads) and make sure that any persistent state is synchronized with the handler's current state in memory.
destroy in interface HttpHandler
protected void log(String message,
Throwable throwable)
protected void log(String message)
protected Writer startDocument(HttpServletResponse response)
throws IOException
response -
Writer for the document
IOException
protected void endDocument(Writer html)
throws IOException
html -
IOException
protected void startHead(Writer html)
throws IOException
html -
IOException
protected void endHead(Writer html)
throws IOException
html -
IOException
protected void startBody(Writer html)
throws IOException
html -
IOException
protected void endBody(Writer html)
throws IOException
html -
IOException
protected static void writeEncoded(Writer html,
String text)
throws IOException
html - text -
IOException
NullPointerException - if html is nullprotected boolean debugDefault()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||