|
NextApp Echo App Container 1.1.4 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An interface provided to an EchoInstance such that it may access certain
facilities available in the application container. An instance of an
implementation of this interface is set as an attribute with
ATTRIBUTE_NAME
Field Summary | |
static java.lang.String |
ATTRIBUTE_NAME
|
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 abnormalExitUri)
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. |
Field Detail |
public static final java.lang.String ATTRIBUTE_NAME
Method Detail |
public void exit()
public void exit(java.lang.String uri)
uri
- The URI to redirect the browser to.public java.lang.String getAbnormalExitUri()
public java.lang.String getCharacterEncoding()
public ClientProperties getClientProperties()
public CookieManager getCookieManager()
public java.lang.String getDefaultExitUri()
public javax.servlet.ServletConfig getServletConfig()
ServletConfig
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
.
ServletConfig
object provided to the
EchoServer
when it was initialized.public javax.servlet.http.HttpSession getSession()
public java.security.Principal getUserPrincipal()
public boolean isUserInRole(java.lang.String role)
public void setAbnormalExitUri(java.lang.String abnormalExitUri)
abnormalExitUri
- The abnormal exit URI.public void setCharacterEncoding(java.lang.String characterEncoding)
characterEncoding
- The character encoding that will be used when
communicating with the client.public void setDefaultExitUri(java.lang.String uri)
uri
- The default exit URI.public void suspend()
public void suspend(java.lang.String uri)
uri
- The URI to redirect the browser to.
|
NextApp Echo App Container 1.1.4 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |