|
|||||||||
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
nextapp.echoservlet.EchoServer
echopoint.servlet.EchoPointServer
public abstract class EchoPointServer
EchoPointServer
is a derivation of EchoServer
that provides some more services than the standard one.
* A full exception dump facility to help with diagnosis of application problems.
* Optional compression of textual browser interactions.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class nextapp.echoservlet.EchoServer |
---|
EchoServer.MultipartRequestWrapper |
Field Summary |
---|
Constructor Summary | |
---|---|
EchoPointServer()
|
Method Summary | |
---|---|
protected void |
describeThrowable(InstancePeer instancePeer,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.lang.Throwable throwable)
This method is called to descibe an error condition. |
java.lang.String |
getApplicationTitle()
Returns the name of this web application for display purposes |
boolean |
isCompressionUsed()
Returns true if compression should be used to compress replies back client browsers that can accept compressed content. |
protected void |
process(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Handles an HTTP request to the EchoServer. |
protected void |
processException(Connection conn,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.lang.Exception ex)
This method provides a more helpful and detailed explanation of the exception has occurred. |
protected void |
processThrowable(Connection conn,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.lang.Throwable throwable)
This method provides a more helpful and detailed explanation of the exception has occurred. |
void |
setCompressionUsed(boolean b)
Controls whether compression will be used on replies to client browsers that can accept compressed content. |
Methods inherited from class nextapp.echoservlet.EchoServer |
---|
addGlobalService, doGet, doPost, getActiveRequestThreads, getApplicationProperties, getDefaultLocale, getLastModified, getMultipartRequestWrapper, getSessionExpirationUri, init, isCompressableRequest, loadPeerBindings, newInstance, setMultipartRequestWrapper |
Methods inherited from class javax.servlet.http.HttpServlet |
---|
doDelete, doHead, doOptions, doPut, doTrace, service, service |
Methods inherited from class javax.servlet.GenericServlet |
---|
destroy, 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 EchoPointServer()
Method Detail |
---|
protected void process(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.io.IOException, javax.servlet.ServletException
EchoServer
Connection
to wrap the request and response objects
provided by the servlet container and invoke Connection
's
process()
method to handle it. If the request is encoded
as multipart/form-data, the MultipartRequestWrapper will be used.
process
in class EchoServer
request
- The HTTPServletRequest
object provided by the
servlet container.response
- The HTTPServletResponse
object provided by the
servlet container.
java.io.IOException
javax.servlet.ServletException
EchoServer.process(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
protected void processException(Connection conn, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.Exception ex) throws java.io.IOException, javax.servlet.ServletException
processException
in class EchoServer
request
- The HttpServletRequest
in use during failure.response
- The HttpServletResponse
in use during failure.ex
- The Exception
that occurred.
java.io.IOException
javax.servlet.ServletException
nextapp.echoservlet.EchoServer#processException(nextapp.echoservlet.InstancePeer, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.Exception)
,
EchoPointServer#processThrowable(InstancePeer, HttpServletRequest, HttpServletResponse, Throwable)
protected void processThrowable(Connection conn, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.Throwable throwable) throws java.io.IOException, javax.servlet.ServletException
This method is needed so that Throwable objects can be caught as well as Exceptions.
java.io.IOException
javax.servlet.ServletException
nextapp.echoservlet.EchoServer#processException(nextapp.echoservlet.InstancePeer, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.Exception)
protected void describeThrowable(InstancePeer instancePeer, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.Throwable throwable) throws java.io.IOException
instancePeer
- - the instancePeer in playrequest
- - the HttpServletRequest in playresponse
- - the HttpServletResponse in playthrowable
- - the Throwable to describe
java.io.IOException
EchoServer#processException(InstancePeer, HttpServletRequest, HttpServletResponse, Exception)
,
EchoPointServer#processException(InstancePeer, HttpServletRequest, HttpServletResponse, Exception)
public java.lang.String getApplicationTitle()
public boolean isCompressionUsed()
CompressingHttpServletResponse
,
CompressingHttpServletResponse.getInstance(HttpServletRequest, HttpServletResponse)
public void setCompressionUsed(boolean b)
b
- - true or falseCompressingHttpServletResponse
,
CompressingHttpServletResponse.getInstance(HttpServletRequest, HttpServletResponse)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |