|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.vfny.geoserver.requests.Requests
Utility methods helpful when processing GeoServer Requests.
Provides helper functions and classes useful when implementing your own Response classes. Of significant importantance are the Request processing functions that allow access to the WebContainer, GeoServer and the User's Session.
If you are working with the STRUTS API the Action method is the direct paralle of the Response classes. You may whish to look at how ConfigAction is implemented, it is a super class which delegates to these Request processing methods.
Constructor Summary | |
Requests()
|
Method Summary | |
static ApplicationState |
getApplicationState(javax.servlet.http.HttpServletRequest request)
Access GeoServer Application State from the WebContainer. |
static java.lang.String |
getBaseUrl(javax.servlet.http.HttpServletRequest httpServletRequest)
|
static GeoServer |
getGeoServer(javax.servlet.http.HttpServletRequest request)
Aquire GeoServer from Web Container. |
static UserContainer |
getUserContainer(javax.servlet.http.HttpServletRequest request)
Aquire type safe session information in a UserContainer. |
static ValidationProcessor |
getValidationProcessor(javax.servlet.http.HttpServletRequest request)
Aquire ValidationProcessor from Web Container. |
static boolean |
isLoggedIn(javax.servlet.http.HttpServletRequest request)
Tests is user is loggin in. |
static void |
logOut(javax.servlet.http.HttpServletRequest request)
Ensures a user is logged out. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Requests()
Method Detail |
public static GeoServer getGeoServer(javax.servlet.http.HttpServletRequest request)
In GeoServer is create by a STRUTS plug-in and is available through the Web container.
Test cases may seed the request object with a Mock WebContainer and a Mock GeoServer.
request
- HttpServletRequest used to aquire servlet context
public static ValidationProcessor getValidationProcessor(javax.servlet.http.HttpServletRequest request)
In ValidationProcessor is create by a STRUTS plug-in and is available through the Web container.
Test cases may seed the request object with a Mock WebContainer and a Mock ValidationProcessor.
request
- HttpServletRequest used to aquire servlet context
public static java.lang.String getBaseUrl(javax.servlet.http.HttpServletRequest httpServletRequest)
public static UserContainer getUserContainer(javax.servlet.http.HttpServletRequest request)
Please note that the UserContainer may be lazyly created.
request
- Http Request used to aquire session reference
public static boolean isLoggedIn(javax.servlet.http.HttpServletRequest request)
True if UserContainer exists has been created.
request
- HttpServletRequest providing current Session
public static void logOut(javax.servlet.http.HttpServletRequest request)
Removes the UserContainer, and thus GeoServers knowledge of the current user attached to this Session.
request
- HttpServletRequest providing current Sessionpublic static ApplicationState getApplicationState(javax.servlet.http.HttpServletRequest request)
request
- DOCUMENT ME!
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |