|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.servlet.GenericServlet
javax.servlet.http.HttpServlet
net.spy.jwebkit.JWHttpServlet
public abstract class JWHttpServlet
Jwebkit base HTTP servlet.
| Constructor Summary | |
|---|---|
JWHttpServlet()
|
|
| Method Summary | |
|---|---|
protected java.lang.String |
getContextRelativeFilePathParameter(java.lang.String name,
java.lang.String def)
Get a context relative file path configuration parameter. |
protected net.spy.log.Logger |
getLogger()
Get the logger for this instance. |
protected void |
sendHTML(java.lang.String html,
javax.servlet.http.HttpServletResponse response)
Send a chunk of HTML as the response with the text/html content type. |
protected void |
sendPlain(java.lang.String text,
javax.servlet.http.HttpServletResponse response)
Send a chunk of plain text as the response with the text/plain content type. |
protected void |
sendSimple(java.lang.String string,
javax.servlet.http.HttpServletResponse response)
Send a simple string. |
void |
service(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Prevent subclasses from implementing service. |
void |
service(javax.servlet.ServletRequest req,
javax.servlet.ServletResponse res)
Prevent subclasses from implementing service. |
| Methods inherited from class javax.servlet.http.HttpServlet |
|---|
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified |
| 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 |
| Constructor Detail |
|---|
public JWHttpServlet()
| Method Detail |
|---|
protected net.spy.log.Logger getLogger()
protected java.lang.String getContextRelativeFilePathParameter(java.lang.String name,
java.lang.String def)
throws javax.servlet.ServletException
name - the name of the config parameterdef - the default value
javax.servlet.ServletException
public final void service(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
throws javax.servlet.ServletException,
java.io.IOException
service in class javax.servlet.http.HttpServletjavax.servlet.ServletException
java.io.IOException
public final void service(javax.servlet.ServletRequest req,
javax.servlet.ServletResponse res)
throws javax.servlet.ServletException,
java.io.IOException
service in interface javax.servlet.Servletservice in class javax.servlet.http.HttpServletjavax.servlet.ServletException
java.io.IOException
protected void sendSimple(java.lang.String string,
javax.servlet.http.HttpServletResponse response)
throws java.io.IOException
string - the string to sendresponse - the response over which to send it
java.io.IOException - if there's an IO problemsendHTML(String,HttpServletResponse),
sendPlain(String,HttpServletResponse)
protected void sendHTML(java.lang.String html,
javax.servlet.http.HttpServletResponse response)
throws java.io.IOException
html - the HTMLresponse - the servlet response over which the response will go
java.io.IOException
protected void sendPlain(java.lang.String text,
javax.servlet.http.HttpServletResponse response)
throws java.io.IOException
text - the textresponse - the servlet response over which the response will go
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||