public class QueryParams extends Object
| Modifier and Type | Field and Description |
|---|---|
List<String> |
accept
Deprecated.
|
String |
acceptType
Deprecated.
|
static String |
CdmRemote
Deprecated.
|
static String |
CSV
Deprecated.
|
double |
east
Deprecated.
|
StringBuilder |
errs
Deprecated.
|
boolean |
fatal
Deprecated.
|
boolean |
hasBB
Deprecated.
|
boolean |
hasDateRange
Deprecated.
|
boolean |
hasLatlonPoint
Deprecated.
|
boolean |
hasStns
Deprecated.
|
boolean |
hasTimePoint
Deprecated.
|
boolean |
hasVerticalCoord
Deprecated.
|
int |
horizStride
Deprecated.
|
static String |
HTML
Deprecated.
|
double |
lat
Deprecated.
|
double |
lon
Deprecated.
|
static String |
NETCDF
Deprecated.
|
static String |
NETCDFS
Deprecated.
|
double |
north
Deprecated.
|
String |
queryString
Deprecated.
|
static String |
RAW
Deprecated.
|
double |
south
Deprecated.
|
List<String> |
stns
Deprecated.
|
DateType |
time
Deprecated.
|
TimeDuration |
time_duration
Deprecated.
|
DateType |
time_end
Deprecated.
|
int |
time_latest
Deprecated.
|
DateType |
time_start
Deprecated.
|
int |
timeStride
Deprecated.
|
List<String> |
vars
Deprecated.
|
double |
vertCoord
Deprecated.
|
int |
vertStride
Deprecated.
|
boolean |
wantAllVariables
Deprecated.
|
double |
west
Deprecated.
|
static String |
XML
Deprecated.
|
| Constructor and Description |
|---|
QueryParams()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
LatLonRect |
getBB()
Deprecated.
|
CalendarDateRange |
getCalendarDateRange()
Deprecated.
|
DateType |
parseDate(javax.servlet.http.HttpServletRequest req,
String key)
Deprecated.
|
double |
parseDouble(javax.servlet.http.HttpServletRequest req,
String key)
Deprecated.
|
int |
parseInt(javax.servlet.http.HttpServletRequest req,
String key)
Deprecated.
|
double |
parseLat(javax.servlet.http.HttpServletRequest req,
String key)
Deprecated.
|
List<String> |
parseList(javax.servlet.http.HttpServletRequest req,
String key)
Deprecated.
parse KVP for key=value or key=value,value,...
|
List<String> |
parseList(javax.servlet.http.HttpServletRequest req,
String key,
String[][] valids,
String defValue)
Deprecated.
Used for accept
parse KVP for key=value or key=value,value,...
|
double |
parseLon(javax.servlet.http.HttpServletRequest req,
String key)
Deprecated.
|
boolean |
parseQuery(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
String[] acceptOK)
Deprecated.
Parse request
|
TimeDuration |
parseW3CDuration(javax.servlet.http.HttpServletRequest req,
String key)
Deprecated.
|
String |
toString()
Deprecated.
|
void |
writeErr(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
String s,
int code)
Deprecated.
|
public static final String RAW
public static final String XML
public static final String HTML
public static final String CSV
public static final String NETCDF
public static final String NETCDFS
public static final String CdmRemote
public String queryString
public String acceptType
public boolean wantAllVariables
public boolean hasBB
public boolean hasStns
public boolean hasLatlonPoint
public double north
public double south
public double east
public double west
public double lat
public double lon
public int horizStride
public int vertStride
public int timeStride
public boolean hasVerticalCoord
public double vertCoord
public boolean hasDateRange
public boolean hasTimePoint
public DateType time_start
public DateType time_end
public DateType time
public TimeDuration time_duration
public int time_latest
public StringBuilder errs
public boolean fatal
public boolean parseQuery(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
String[] acceptOK)
throws IOException
req - HTTP requestres - HTTP responseacceptOK - array of acceptable accept types, in order. First one is defaultIOException - if I/O errorpublic DateType parseDate(javax.servlet.http.HttpServletRequest req, String key)
public TimeDuration parseW3CDuration(javax.servlet.http.HttpServletRequest req, String key)
public double parseDouble(javax.servlet.http.HttpServletRequest req,
String key)
public int parseInt(javax.servlet.http.HttpServletRequest req,
String key)
public double parseLat(javax.servlet.http.HttpServletRequest req,
String key)
public double parseLon(javax.servlet.http.HttpServletRequest req,
String key)
public List<String> parseList(javax.servlet.http.HttpServletRequest req, String key)
req - HTTP requestkey - key to look forpublic List<String> parseList(javax.servlet.http.HttpServletRequest req, String key, String[][] valids, String defValue)
req - HTTP requestkey - key to look forvalids - list of valid keywordsdefValue - default valuepublic LatLonRect getBB()
public CalendarDateRange getCalendarDateRange()
public void writeErr(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
String s,
int code)
throws IOException
IOExceptionCopyright © 1999-2015 UCAR/Unidata. All Rights Reserved.