|
EAF 7.6 Implementation | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.lutris.appserver.server.StandardAppUtil
public class StandardAppUtil
Static methods used by StandardApplication
. These mostly are
used to manage sessions.
Field Summary | |
---|---|
static java.lang.String |
ENHYDRA_SESSION_ID_COOKIE
|
static java.lang.String |
ENHYDRA_SESSION_ID_URL
|
Method Summary | |
---|---|
static void |
bindSessionToClient(HttpPresentationComms comms)
Associate a new StandardSession |
static java.lang.String |
encodeUrl(java.lang.String url,
java.lang.String id)
Encode a URL with a session identifier. |
static java.net.InetAddress[] |
getPeerAddress(HttpPresentationComms comms)
Get internet peer address. |
static com.lutris.appserver.server.session.Session |
getRequestSession(HttpPresentationComms comms)
Determine if a session exists for this request. |
static com.lutris.appserver.server.session.Session |
getRequestSession(javax.servlet.ServletRequest request,
com.lutris.appserver.server.Application application)
This is a rarely used utility function. |
static boolean |
pointsToPO(java.lang.String url)
Determine if a URL references a presentation object. |
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 ENHYDRA_SESSION_ID_URL
public static final java.lang.String ENHYDRA_SESSION_ID_COOKIE
Method Detail |
---|
public static java.net.InetAddress[] getPeerAddress(HttpPresentationComms comms) throws com.lutris.appserver.server.ApplicationException
comms
- The presentations manager comms object with all
request/response information in it.
ApplicationException
- If address can't be obtained.public static java.lang.String encodeUrl(java.lang.String url, java.lang.String id)
url
- The url to encode.id
- The session identifier to encode with the url.public static boolean pointsToPO(java.lang.String url)
.po
. http://www.server.org/path/file.html?query=page.po
url
- The url to check
public static com.lutris.appserver.server.session.Session getRequestSession(HttpPresentationComms comms) throws com.lutris.appserver.server.ApplicationException
comms
- The presentations manager comms object with all
request/response information in it.
ApplicationException
- If address can't be obtained.public static com.lutris.appserver.server.session.Session getRequestSession(javax.servlet.ServletRequest request, com.lutris.appserver.server.Application application) throws com.lutris.appserver.server.ApplicationException
request
- The raw request.application
- The application that will be servicing the request.
com.lutris.appserver.server.ApplicationException
public static void bindSessionToClient(HttpPresentationComms comms) throws com.lutris.appserver.server.ApplicationException
StandardSession to a client cookie.
- Parameters:
comms
- The presentations manager comms object with all
request/response information in it.
- Throws:
ApplicationException
- If address can't be obtained.
|
EAF 7.6 Implementation | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |