|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ServerContext
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 |
---|
static final java.lang.String ATTRIBUTE_NAME
Method Detail |
---|
void exit()
void exit(java.lang.String uri)
uri
- The URI to redirect the browser to.java.lang.String getAbnormalExitUri()
java.lang.String getCharacterEncoding()
ClientProperties getClientProperties()
CookieManager getCookieManager()
java.lang.String getDefaultExitUri()
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.javax.servlet.http.HttpSession getSession()
java.security.Principal getUserPrincipal()
boolean isUserInRole(java.lang.String role)
void setAbnormalExitUri(java.lang.String abnormalExitUri)
abnormalExitUri
- The abnormal exit URI.void setCharacterEncoding(java.lang.String characterEncoding)
characterEncoding
- The character encoding that will be used when
communicating with the client.void setDefaultExitUri(java.lang.String uri)
uri
- The default exit URI.void suspend()
void suspend(java.lang.String uri)
uri
- The URI to redirect the browser to.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |