| java.lang.Object org.vfny.geoserver.Request
All known Subclasses: org.vfny.geoserver.wms.requests.WMSRequest, org.vfny.geoserver.wcs.requests.WCSRequest, org.vfny.geoserver.util.requests.CapabilitiesRequest, org.vfny.geoserver.sld.requests.PutStylesRequest,
Request | abstract public class Request (Code) | | Defines a general Request type and provides accessor methods for universal
request information.
Also provides access to the HttpRequest that spawned this GeoServer Request.
This HttpRequest is most often used to lookup information stored in the
Web Container (such as the GeoServer Global information).
author: Rob Hranac, TOPP author: Chris Holmes, TOPP author: Gabriel Roldan author: $Author: Alessio Fabiani (alessio.fabiani@gmail.com) $ (last modification) author: $Author: Simone Giannecchini (simboss1@gmail.com) $ (last modification) version: $Id: Request.java 7522 2007-09-12 22:00:10Z saul.farber $ |
baseUrl | protected String baseUrl(Code) | | reference to the base Url that this request was called with.
Note that this is a complete duplicate of info in the above HttpServletRequest
object, and is mainly a forward-thinking field that's going to stick around when
the above HttpServletRequest goes away.
|
httpServletRequest | protected HttpServletRequest httpServletRequest(Code) | | HttpServletRequest responsible for generating this GeoServer Request.
|
service | protected String service(Code) | | The service type of the request. In other words, is it a WMS
or a WFS. This is a standard element of a request. It now has
a practical purpose in GeoServer, as a GetCapabilities request
can be WMS or WFS, this element tells which it is.
|
Request | protected Request(String serviceType, String requestType, AbstractService serviceRef)(Code) | | ServiceType,RequestType,ServiceRef constructor.
Parameters: serviceType - Name of hte service (example, WFS) Parameters: requestType - Name of the request (example, GetCapabilties) Parameters: serviceRef - The servlet for the request. |
getBaseUrl | public String getBaseUrl()(Code) | | Gets the base url that made this request. This is used to return the
referenced schemas and whatnot relative to the request.
The base portion of the url that the client used to make the request. |
getRequest | public String getRequest()(Code) | | Gets requested request type.
TODO: Could this bre renamed getType() for clarity?
Um, no. getType() is less clear. getRequest makes sense because
this is directly modeled off of the XML and KVP Requests that a
wfs or wms makes, and they all contain an element called Request.
The name of the request. |
getSchemaBaseUrl | public String getSchemaBaseUrl()(Code) | | Gets the url that schemas should be referenced from. For now this will
always be local, if we bring back schemaBaseUrl as a param then that will
be possible too. So it is just baseUrl plus data/capabilities, which
is where we store the schemas now.
the base url of the schemas. Will be getBaseUrl() + data/capabilities. |
getService | public String getService()(Code) | | Gets requested service.
The requested service. |
getVersion | public String getVersion()(Code) | | Return version type.
The request type version. |
hashCode | public int hashCode()(Code) | | Generate a hashCode based on this Request Object.
|
isDispatchedRequest | public boolean isDispatchedRequest()(Code) | | Whether this request was sent through one of the dispatchers, or if
it went directly through the servlet. This is used by the capabilities
response, since we give back a dispatched capabilities document to clients
who request it with a dispatcher.
true if the request came through a dispatcher. |
isLoggedIn | public boolean isLoggedIn()(Code) | | Tests if user is Logged into GeoServer.
true if user is logged in |
setBaseUrl | public void setBaseUrl(String s)(Code) | | Set the baseUrl that this request was called with.
|
setHttpServletRequest | public void setHttpServletRequest(HttpServletRequest servletRequest)(Code) | | Sets the servletRequest that generated this GeoServer request.
The ServletRequest is often used to:
- Access the Sesssion and WebContainer by execute opperations
- Of special importance is the use of the ServletRequest to locate the GeoServer Application
Parameters: servletRequest - The servletRequest to set. |
setRequest | public void setRequest(String requestType)(Code) | | Sets requested request type.
Parameters: reqeust - The type of request. |
setService | public void setService(String service)(Code) | | Gets requested service.
Parameters: service - The requested service. |
setServiceRef | public void setServiceRef(AbstractService serviceRef)(Code) | | Sets the reference to the service.
|
setVersion | public void setVersion(String version)(Code) | | Sets version type.
Parameters: version - The request type version. |
|
|