|
|
|
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ServiceRequest
The request sent to the service.
The ServiceRequest contains the Command and
ServiceSession associated to the request to the pulse
service. It also provides access to Cookies and
TemporaryFiles belonging to the request.
Moreover, the ServiceRequest takes care of authenticating the
User.
| Nested Class Summary | |
|---|---|
static class |
ServiceRequest.SessionMode
|
| Method Summary | |
|---|---|
void |
addCookie(Cookie cookie)
adds the given Cookie to the response of the pulse
service. |
AcceptLanguages |
getAcceptLanguages()
returns the parsed accept-languages header. |
java.lang.String |
getBaseURI()
get the base URI to the servlet. |
Command |
getCommand()
get the Command sent to the pulse service. |
java.util.Collection<Cookie> |
getCookies()
get all Cookies sent by the browser. |
EventManager |
getEventManager()
returns the event manager of the service request. |
javax.servlet.http.HttpServletRequest |
getHttpServletRequest()
get access to the underlying HttpServletRequest. |
javax.servlet.http.HttpServletResponse |
getHttpServletResponse()
get access to the underlying HttpServletResponse. |
long |
getIntelliCacheMaxAge()
returns the maximum age for a dynamic page cached using IntelliCache to be considered for 304 Not Modified
responses upon a stateless ServiceSession. |
java.util.Locale |
getLocale()
returns the currently set Locale for the request. |
GeoLocation |
getRequestOrigin()
returns the country the request is made from or null, if the
country could not be resolved by
Lifecycle.getGeoLocationProvider()
. |
ServiceSession |
getSession()
get the ServiceSession associated to the request. |
ServiceRequest.SessionMode |
getSessionMode()
indicates whether the session shall be used with URL based session IDs and Cookies or with Cookies only. |
java.util.List<IUploadedFile> |
getUploadedFiles()
get all files that where uploaded during the request. |
User |
getUser()
returns the User associated with the request. |
ServiceRequest |
init(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
initialises the service request from a HTTP servlet request. |
void |
refreshUser()
refreshes the User information from the session. |
| Method Detail |
|---|
java.lang.String getBaseURI()
Command getCommand()
Command sent to the pulse service.
CommandServiceSession getSession()
ServiceSession associated to the request.
ServiceSessionjava.util.List<IUploadedFile> getUploadedFiles()
List of the uploaded filesjava.util.Locale getLocale()
Locale for the request.
LocaleUser getUser()
User associated with the request.
Userjava.util.Collection<Cookie> getCookies()
Cookies sent by the browser.
Cookiesvoid addCookie(Cookie cookie)
Cookie to the response of the pulse
service.
cookie - the Cookie to be addedCookiejavax.servlet.http.HttpServletRequest getHttpServletRequest()
HttpServletRequest.
javax.servlet.http.HttpServletResponse getHttpServletResponse()
HttpServletResponse.
ServiceRequest init(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
req - the request to be usedres - the response to be used
EventManager getEventManager()
GeoLocation getRequestOrigin()
null, if the
country could not be resolved by
Lifecycle.getGeoLocationProvider()
.
null, if the
country could not be resolvedServiceRequest.SessionMode getSessionMode()
true, if only cookie based sessions are to be usedvoid refreshUser()
User information from the session.
AcceptLanguages getAcceptLanguages()
long getIntelliCacheMaxAge()
IntelliCache to be considered for 304 Not Modified
responses upon a stateless ServiceSession.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||