Constructor and Description |
---|
DriverRequest(IncomingRequest request,
Driver driver,
String relUrl) |
Modifier and Type | Method and Description |
---|---|
URL |
getBaseUrl()
Returns the base url selected to send this request.
|
String |
getCharacterEncoding()
Returns the charset used to encode and decode the request parameters.
|
ContainerRequestContext |
getContext()
Returns the context specifit to the container (servlet container for instance).
|
Driver |
getDriver()
Returns the driver instance that handles this request.
|
IncomingRequest |
getOriginalRequest()
Returns the original request received from the client.
|
UserContext |
getUserContext()
Returns the user context associated with this request.
|
String |
getVisibleBaseUrl()
Returns the base url as seen by the client.
|
boolean |
isExternal()
Returns true if the target url is not one the provider application.
|
void |
setCharacterEncoding(String characterEncoding)
Sets the charset to use to encode and decode the parameters for this request.
|
public DriverRequest(IncomingRequest request, Driver driver, String relUrl) throws HttpErrorPage
request
- driver
- relUrl
- HttpErrorPage
public Driver getDriver()
public UserContext getUserContext()
public URL getBaseUrl()
public String getCharacterEncoding()
public void setCharacterEncoding(String characterEncoding)
characterEncoding
- the charset namepublic ContainerRequestContext getContext()
public IncomingRequest getOriginalRequest()
public boolean isExternal()
public String getVisibleBaseUrl()
Copyright © 2008–2018. All rights reserved.