net.sf.jzeno.echo
Class Server
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
nextapp.echoservlet.EchoServer
net.sf.jzeno.echo.Server
- All Implemented Interfaces:
- java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
public class Server
- extends EchoServer
EchoServer implementation.
Takes care of handling non-terminating exceptions (like
OptimisticLockException)
- See Also:
- Serialized Form
Fields inherited from class nextapp.echoservlet.EchoServer |
CHARACTER_ENCODING_ISO_8859_1, CHARACTER_ENCODING_ISO_8859_2, CHARACTER_ENCODING_ISO_8859_3, CHARACTER_ENCODING_ISO_8859_4, CHARACTER_ENCODING_ISO_8859_5, CHARACTER_ENCODING_US_ASCII, CHARACTER_ENCODING_UTF_8, ID_STRING, SERVICE_BLANK_DOCUMENT, SERVICE_CLIENT_ERROR_SCRIPT, SERVICE_COLLECTIONS_SCRIPT, SERVICE_INITIALIZER, SERVICE_SAFE_INVOKE_DEFAULT, SERVICE_SAFE_INVOKE_EXCEPTION_SUPPORT, SERVICE_SESSION_EXPIRED |
Method Summary |
static boolean |
causedByOptimisticLockException(java.lang.Throwable e)
|
static javax.mail.BodyPart |
getStringBodyPart(java.lang.String s,
java.lang.String type)
|
EchoInstance |
newInstance()
A method to be provided by the derived class that will return a new
EchoInstance (an instance of an Echo application). |
protected void |
processException(Connection conn,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.lang.Exception ex)
Processes an exception which occurred during an invocation of the
process() method. |
static void |
sendExceptionsByMail(java.util.List exceptions,
java.lang.String html)
This operation sends a mail message for an application exception ! |
Methods inherited from class nextapp.echoservlet.EchoServer |
addGlobalService, doGet, doPost, getActiveRequestThreads, getApplicationProperties, getDefaultLocale, getLastModified, getMultipartRequestWrapper, getSessionExpirationUri, init, isCompressableRequest, loadPeerBindings, process, 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 |
instance
public static Server instance
serialVersionUID
public static final long serialVersionUID
- See Also:
- Constant Field Values
Server
public Server()
processException
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
- Description copied from class:
EchoServer
- Processes an exception which occurred during an invocation of the
process()
method. This method may be overriden to take
additional actions when errors occur.
- Overrides:
processException
in class EchoServer
request
- The HttpServletRequest
in use during failure.response
- The HttpServletResponse
in use during failure.ex
- The Exception
that occurred.
- Throws:
java.io.IOException
javax.servlet.ServletException
newInstance
public EchoInstance newInstance()
- Description copied from class:
EchoServer
- A method to be provided by the derived class that will return a new
EchoInstance (an instance of an Echo application).
- Specified by:
newInstance
in class EchoServer
- Returns:
- A new EchoInstance for the new user.
causedByOptimisticLockException
public static boolean causedByOptimisticLockException(java.lang.Throwable e)
sendExceptionsByMail
public static void sendExceptionsByMail(java.util.List exceptions,
java.lang.String html)
This operation sends a mail message for an application exception !
Configuration of where and how to send is in the global application
configuration. ( configuration.properties )
getStringBodyPart
public static javax.mail.BodyPart getStringBodyPart(java.lang.String s,
java.lang.String type)
throws javax.mail.MessagingException
- Throws:
javax.mail.MessagingException