|
NextApp Echo App Container 1.1.4 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.servlet.GenericServlet javax.servlet.http.HttpServlet nextapp.echoservlet.EchoServer
Holds global information about an application and handles HTTP requests for an application. This class is extended by an application.
Nested Class Summary | |
static interface |
EchoServer.MultipartRequestWrapper
An interface implemented by a supporting object that will handle multipart/form-data encoded HTTP requests. |
Field Summary | |
static java.lang.String |
CHARACTER_ENCODING_ISO_8859_1
|
static java.lang.String |
CHARACTER_ENCODING_ISO_8859_2
|
static java.lang.String |
CHARACTER_ENCODING_ISO_8859_3
|
static java.lang.String |
CHARACTER_ENCODING_ISO_8859_4
|
static java.lang.String |
CHARACTER_ENCODING_ISO_8859_5
|
static java.lang.String |
CHARACTER_ENCODING_US_ASCII
|
static java.lang.String |
CHARACTER_ENCODING_UTF_8
|
static java.lang.String |
ID_STRING
The app container name and version, as well as the framework name and version. |
static Service |
SERVICE_BLANK_DOCUMENT
A blank HTML page, suitable for filling empty ContainerPanes, etc. |
static Service |
SERVICE_CLIENT_ERROR_SCRIPT
|
static Service |
SERVICE_COLLECTIONS_SCRIPT
The JavaScript include which provides collections-framework-like functionality to JavaScript objects. |
static Service |
SERVICE_INITIALIZER
The service responsible for initializing applications |
static Service |
SERVICE_SAFE_INVOKE_DEFAULT
The default safe method invocation service |
static Service |
SERVICE_SAFE_INVOKE_EXCEPTION_SUPPORT
The safe method invocation service for browsers that support exception handling using try/catch/finally blocks. |
static Service |
SERVICE_SESSION_EXPIRED
The service a client browser will be directed to in the event that his/her session expires. |
Constructor Summary | |
EchoServer()
|
Method Summary | |
static void |
addGlobalService(Service service)
Adds a globally available service that will be available to all applications deployed with this EchoServer object. |
void |
doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Handles a GET request. |
void |
doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Handles a POST request. |
ApplicationProperties |
getApplicationProperties()
Returns the Application Properties for this Echo Servlet. |
java.util.Locale |
getDefaultLocale(javax.servlet.http.HttpServletRequest request)
Returns the default locale based on the request. |
static EchoServer.MultipartRequestWrapper |
getMultipartRequestWrapper()
Returns the multipart/form-data encoded HTTP request handler. |
java.lang.String |
getSessionExpirationUri(java.lang.String applicationUri)
Returns the URI that should be redirected to in the event a user's session within an Echo application expires. |
void |
init(javax.servlet.ServletConfig config)
|
static void |
loadPeerBindings(java.lang.String propertiesFile)
Loads peer bindings for additional components. |
abstract nextapp.echo.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 |
process(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Handles an HTTP request to the EchoServer. |
protected void |
processException(InstancePeer instancePeer,
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 |
setMultipartRequestWrapper(EchoServer.MultipartRequestWrapper multipartRequestWrapper)
Sets the multipart/form-data encoded HTTP request handler. |
Methods inherited from class javax.servlet.http.HttpServlet |
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, 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 |
Field Detail |
public static final java.lang.String CHARACTER_ENCODING_ISO_8859_1
public static final java.lang.String CHARACTER_ENCODING_ISO_8859_2
public static final java.lang.String CHARACTER_ENCODING_ISO_8859_3
public static final java.lang.String CHARACTER_ENCODING_ISO_8859_4
public static final java.lang.String CHARACTER_ENCODING_ISO_8859_5
public static final java.lang.String CHARACTER_ENCODING_US_ASCII
public static final java.lang.String CHARACTER_ENCODING_UTF_8
public static final java.lang.String ID_STRING
public static final Service SERVICE_INITIALIZER
public static final Service SERVICE_BLANK_DOCUMENT
public static final Service SERVICE_COLLECTIONS_SCRIPT
public static final Service SERVICE_SESSION_EXPIRED
public static final Service SERVICE_SAFE_INVOKE_DEFAULT
public static final Service SERVICE_SAFE_INVOKE_EXCEPTION_SUPPORT
public static final Service SERVICE_CLIENT_ERROR_SCRIPT
Constructor Detail |
public EchoServer()
Method Detail |
public static void addGlobalService(Service service)
service
- The global service to be added.public static final EchoServer.MultipartRequestWrapper getMultipartRequestWrapper()
setMultipartRequestWrapper(nextapp.echoservlet.EchoServer.MultipartRequestWrapper)
public static final void loadPeerBindings(java.lang.String propertiesFile)
propertiesFile
- The name of the properties file containing the
peer binding data.public static final void setMultipartRequestWrapper(EchoServer.MultipartRequestWrapper multipartRequestWrapper)
multipartRequestWrapper
- The handler for multipart/form-data
encoded HTTP requests.
java.lang.IllegalStateException
- if the application attempts to change
a previously set multipart request handler.public final void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.io.IOException, javax.servlet.ServletException
java.io.IOException
javax.servlet.ServletException
process(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
public final void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.io.IOException, javax.servlet.ServletException
java.io.IOException
javax.servlet.ServletException
process(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
public final ApplicationProperties getApplicationProperties()
public java.util.Locale getDefaultLocale(javax.servlet.http.HttpServletRequest request)
public java.lang.String getSessionExpirationUri(java.lang.String applicationUri)
applicationUri
- The URI of the Echo application.
public void init(javax.servlet.ServletConfig config) throws javax.servlet.ServletException
javax.servlet.ServletException
Servlet.init(javax.servlet.ServletConfig)
public abstract nextapp.echo.EchoInstance newInstance()
protected void process(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.io.IOException, javax.servlet.ServletException
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.
request
- The HTTPServletRequest
object provided by
the servlet container.response
- The HTTPServletResponse
object provided by
the servlet container.
java.io.IOException
javax.servlet.ServletException
protected void processException(InstancePeer instancePeer, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.Exception ex) throws java.io.IOException, javax.servlet.ServletException
process()
method. This method may be overriden to take
additional actions when errors occur.
instancePeer
- The InstancePeer
object of the
failed application.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 Echo App Container 1.1.4 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |