|
NextApp Echo App Container 1.0.5 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnextapp.echoservlet.ServerContextImpl
The implementation of the ServerContext interface.
ServerContext| Field Summary | |
private java.lang.String |
defaultExitUri
|
private InstancePeer |
instancePeer
|
| Fields inherited from interface nextapp.echoservlet.ServerContext |
ATTRIBUTE_NAME |
| Constructor Summary | |
ServerContextImpl(InstancePeer instancePeer)
Creates a new instance for the given InstancePeer. |
|
| Method Summary | |
void |
exit()
Exits the application. |
void |
exit(java.lang.String uri)
Exits the application. |
java.lang.String |
getAbnormalExitUri()
Returns the abnormal exit URI. |
java.lang.String |
getCharacterEncoding()
Returns the character encoding that will be used when communicating with the client. |
ClientProperties |
getClientProperties()
Returns the client properties data that contains data about the client browser. |
CookieManager |
getCookieManager()
Returns the CookieManager instance for the application. |
java.lang.String |
getDefaultExitUri()
Returns the default exit URI. |
javax.servlet.ServletConfig |
getServletConfig()
Returns the ServletConfig object provided to the
EchoServer when it was initialized. |
javax.servlet.http.HttpSession |
getSession()
Returns the HTTP session that in which the Echo application is held. |
java.security.Principal |
getUserPrincipal()
Returns the principal (user) of the application. |
boolean |
isUserInRole(java.lang.String role)
Returns true if the application's user is in the specified role. |
void |
setAbnormalExitUri(java.lang.String uri)
Sets the abnormal exit URI. |
void |
setCharacterEncoding(java.lang.String characterEncoding)
Sets the character encoding that will be used when communicating with the client. |
void |
setDefaultExitUri(java.lang.String uri)
Sets the default exit URI The browser is redirected to the default exit URI automatically if the exit() or suspend() are called without a specific URI. |
void |
suspend()
Suspends the application. |
void |
suspend(java.lang.String uri)
Suspends the application. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private InstancePeer instancePeer
private java.lang.String defaultExitUri
| Constructor Detail |
public ServerContextImpl(InstancePeer instancePeer)
InstancePeer.
instancePeer - The InstancePeer that this
ServerContext will serve.| Method Detail |
public void exit()
ServerContext
exit in interface ServerContextServerContext.exit()public void exit(java.lang.String uri)
ServerContext
exit in interface ServerContexturi - The URI to redirect the browser to.ServerContext.exit(String)public java.lang.String getAbnormalExitUri()
ServerContext
getAbnormalExitUri in interface ServerContextServerContext.getAbnormalExitUri()public ClientProperties getClientProperties()
ServerContext
getClientProperties in interface ServerContextServerContext.getClientProperties()public CookieManager getCookieManager()
ServerContext
getCookieManager in interface ServerContextServerContext.getCookieManager()public java.lang.String getDefaultExitUri()
ServerContext
getDefaultExitUri in interface ServerContextServerContext.getDefaultExitUri()public java.lang.String getCharacterEncoding()
ServerContext
getCharacterEncoding in interface ServerContextServerContext.getCharacterEncoding()public javax.servlet.ServletConfig getServletConfig()
ServerContextServletConfig object provided to the
EchoServer when it was initialized. The
ServletConfig object provides access to servlet
initialization parameters. Use
ServletConfig.getServletContext() to obtain access
to the ServletContext.
getServletConfig in interface ServerContextServletConfig object provided to the
EchoServer when it was initialized.ServerContext.getServletConfig()public javax.servlet.http.HttpSession getSession()
ServerContext
getSession in interface ServerContextServerContext.getSession()public java.security.Principal getUserPrincipal()
ServerContext
getUserPrincipal in interface ServerContextServerContext.getUserPrincipal()public boolean isUserInRole(java.lang.String role)
ServerContext
isUserInRole in interface ServerContextServerContext.isUserInRole(String)public void setAbnormalExitUri(java.lang.String uri)
ServerContext
setAbnormalExitUri in interface ServerContexturi - The abnormal exit URI.ServerContext.setAbnormalExitUri(String)public void setCharacterEncoding(java.lang.String characterEncoding)
ServerContext
setCharacterEncoding in interface ServerContextcharacterEncoding - The character encoding that will be used when
communicating with the client.ServerContext.setCharacterEncoding(String)public void setDefaultExitUri(java.lang.String uri)
ServerContext
setDefaultExitUri in interface ServerContexturi - The default exit URI.ServerContext.setDefaultExitUri(String)public void suspend()
ServerContext
suspend in interface ServerContextServerContext.suspend()public void suspend(java.lang.String uri)
ServerContext
suspend in interface ServerContexturi - The URI to redirect the browser to.ServerContext.suspend(String)
|
NextApp Echo App Container 1.0.5 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||