public class ReqInfo
extends java.lang.Object
Examples:
Modifier and Type | Field and Description |
---|---|
static int |
ABSOLUTE_MAX_POST_BODY_LENGTH |
static int |
DEFAULT_POST_BODY_MAX_LENGTH |
Constructor and Description |
---|
ReqInfo() |
Modifier and Type | Method and Description |
---|---|
static boolean |
addService(java.lang.String serviceName,
java.lang.String serviceLocalID) |
static boolean |
dropService(java.lang.String serviceName) |
static java.lang.String |
getBesDataSourceID(javax.servlet.http.HttpServletRequest req)
Deprecated.
|
static java.lang.String |
getBesDataSourceID(java.lang.String relativeUrl)
Deprecated.
|
static java.lang.String |
getCollectionName(javax.servlet.http.HttpServletRequest req)
The collection name is the path leading to requested dataset, if a dataset was requested.
|
static java.lang.String |
getConstraintExpression(javax.servlet.http.HttpServletRequest req)
This has been hacked to collect path side functional expressions (server side functions expressed in the path of
the URL and place them on the beginning of the CE returned.
|
static java.lang.String |
getDataSetName(javax.servlet.http.HttpServletRequest req)
The dataset is an "atom" in the OPeNDAP URL lexicon.
|
static java.lang.String |
getFullServiceContext(javax.servlet.http.HttpServletRequest request)
Get service context portion of the URL - everything in the URL after the name of the server and before the
localID (aka relativeUrl) of the dataset.
|
static java.lang.String |
getLocalUrl(javax.servlet.http.HttpServletRequest req)
This finds the name of the requested local resource.
|
static int |
getPostBodyMaxLength() |
static java.lang.String |
getRequestSuffix(javax.servlet.http.HttpServletRequest req) |
static java.util.Enumeration<java.lang.String> |
getServiceNames() |
static java.lang.String |
getServiceUrl(javax.servlet.http.HttpServletRequest request)
Get service portion of the URL - everything in the URL before the localID (aka relativeUrl) of the dataset.
|
static java.lang.String |
getSuffix(java.lang.String s)
If a dot is found in the last path element take the stuff after the last dot as the file suffix
|
static boolean |
isServiceOnlyRequest(javax.servlet.http.HttpServletRequest req) |
static boolean |
requestForOpendapContents(javax.servlet.http.HttpServletRequest req)
Evaluates the request and returns TRUE if it is determined that the request is for an OPeNDAP directory view.
|
static boolean |
requestForTHREDDSCatalog(javax.servlet.http.HttpServletRequest req)
Evaluates the request and returns TRUE if it is determined that the request is for an THREDDS directory view.
|
static void |
setMaxPostBodyLength(int maxLength) |
static java.lang.String |
toString(javax.servlet.http.HttpServletRequest request) |
public static final int DEFAULT_POST_BODY_MAX_LENGTH
public static final int ABSOLUTE_MAX_POST_BODY_LENGTH
public static void setMaxPostBodyLength(int maxLength)
public static int getPostBodyMaxLength()
public static boolean addService(java.lang.String serviceName, java.lang.String serviceLocalID)
public static boolean dropService(java.lang.String serviceName)
public static java.util.Enumeration<java.lang.String> getServiceNames()
public static java.lang.String getServiceUrl(javax.servlet.http.HttpServletRequest request)
request
- The client request.public static java.lang.String getFullServiceContext(javax.servlet.http.HttpServletRequest request)
request
- The client request.public static java.lang.String getLocalUrl(javax.servlet.http.HttpServletRequest req)
req
- public static java.lang.String getConstraintExpression(javax.servlet.http.HttpServletRequest req) throws java.io.IOException
req
- The client request.java.io.IOException
- When the body of a POST request cannot be read.public static java.lang.String getCollectionName(javax.servlet.http.HttpServletRequest req)
req
- The client request.public static java.lang.String getRequestSuffix(javax.servlet.http.HttpServletRequest req)
req
- The client request.public static java.lang.String getSuffix(java.lang.String s)
s
- public static java.lang.String getDataSetName(javax.servlet.http.HttpServletRequest req)
req
- The client request.public static java.lang.String getBesDataSourceID(javax.servlet.http.HttpServletRequest req)
Examples:
req
- The client request.@Deprecated public static java.lang.String getBesDataSourceID(java.lang.String relativeUrl)
Examples:
relativeUrl
- The relative URL of the client request. No Constraint expression (i.e. No query section of
the URL - the question mark and everything after it.)public static boolean requestForOpendapContents(javax.servlet.http.HttpServletRequest req)
req
- The client request.public static boolean requestForTHREDDSCatalog(javax.servlet.http.HttpServletRequest req)
req
- The client request.public static java.lang.String toString(javax.servlet.http.HttpServletRequest request)
public static boolean isServiceOnlyRequest(javax.servlet.http.HttpServletRequest req)