public class AddePointURL extends AddeDatasetURL
group=<groupname> ADDE group name descr=<descriptor> ADDE descriptor name pos=<position> request an absolute or relative ADDE position number select=<select clause> to specify which data is required param=<param list> what parameters to return eg param=t[c] note that the units [c] are ignored by server it is the clients task to convert units Note that if "param=" is used, binaryData is set to the (processed) parameter list max=<max> maximum number of obs to return trace=<0/1> setting to 1 tells server to write debug trace file (imagedata, imagedirectory) binaryData=<param list> because an unlimited number of parameters may be requested, these must be packaged up at the end of the adde request, and this is known as the "binary data" part of the request the following keywords are required: group an example URL might look like: adde://rtds/point?group=neons&descr=metar
Modifier and Type | Field and Description |
---|---|
static String |
KEY_MAX
Keyword for MAX
|
static String |
KEY_NUM
Keyword for MAX
|
static String |
KEY_PARAM
Keyword for PARAM
|
static String |
KEY_POS
Keyword for POS
|
static String |
KEY_SELECT
Keyword for SELECT
|
KEY_DESCRIPTOR, KEY_GROUP
ADDE_PROTOCOL, ALL, COMPRESS, DEFAULT_VALUE, GZIP, KEY_COMPRESS, KEY_DEBUG, KEY_PORT, KEY_PROJ, KEY_TRACE, KEY_USER, KEY_VERSION, NO, NO_COMPRESS, REQ_ADIR, REQ_AGET, REQ_DATASETINFO, REQ_GDIR, REQ_GGET, REQ_GRIDDATA, REQ_GRIDDIR, REQ_IMAGEDATA, REQ_IMAGEDIR, REQ_LWPR, REQ_MDKS, REQ_OBTEXT, REQ_OBTG, REQ_POINTDATA, REQ_TEXT, REQ_TXTG, REQ_WTXG, REQ_WXTEXT, TRACE_OFF, TRACE_ON, YES
Constructor and Description |
---|
AddePointURL()
no arg constructor
|
AddePointURL(String host,
String requestType,
String group,
String descriptor)
Create an AddePointURL.
|
AddePointURL(String host,
String requestType,
String group,
String descriptor,
String query)
Create an ADDE PointURL from the given specs.
|
AddePointURL(String host,
String requestType,
String group,
String descriptor,
String position,
String select,
String paramList,
int maxNum)
Create an ADDE Point URL from the given spec
|
Modifier and Type | Method and Description |
---|---|
static AddePointURL |
decodeURL(String baseURL)
Decode a URL and return an AddePointURL
|
int |
getMaxNumber()
Get the MAX value
|
String |
getParams()
Get the PARAM value
|
String |
getPosition()
Get the POS value
|
String |
getSelectClause()
Get the SELECT value
|
static void |
main(String[] args)
Test the parsing
|
protected String |
makeQuery()
Create the ADDE URL
|
protected void |
parseQuery(String query)
Parse the query string and set the values accordingly, subclasses
should extend to parse their particular keywords
|
void |
setMaxNumber(int value)
Set the MAX value
|
void |
setParams(String value)
Set the PARAM value
|
void |
setPosition(String value)
Set the POS value
|
void |
setSelectClause(String value)
Set the SELECT clause
|
getDescriptor, getGroup, setDescriptor, setGroup
appendKeyValue, clone, equals, getCompression, getDebug, getExtraKeys, getHost, getPort, getProject, getRequestType, getTrace, getURLString, getUser, getValue, getVersion, hashCode, setCompression, setCompressionFromString, setDebug, setExtraKeys, setHost, setPort, setProject, setRequestType, setTrace, setUser, setVersion
public static final String KEY_SELECT
public static final String KEY_PARAM
public static final String KEY_MAX
public static final String KEY_NUM
public static final String KEY_POS
public AddePointURL()
public AddePointURL(String host, String requestType, String group, String descriptor)
host
- host to send torequestType
- type of request (REQ_IMAGEDATA, REQ_IMAGEDIR)group
- ADDE groupdescriptor
- ADDE descriptorpublic AddePointURL(String host, String requestType, String group, String descriptor, String query)
host
- host to send torequestType
- type of request (REQ_IMAGEDATA, REQ_IMAGEDIR)group
- ADDE group (may be null)descriptor
- ADDE descriptor (may be null)query
- query string (key/value pairs)public AddePointURL(String host, String requestType, String group, String descriptor, String position, String select, String paramList, int maxNum)
host
- host to send torequestType
- type of request (REQ_IMAGEDATA, REQ_IMAGEDIR)group
- ADDE groupdescriptor
- ADDE descriptorposition
- dataset position (number or ALL)select
- select clauseparamList
- parameter listmaxNum
- maximum number to returnpublic String getSelectClause()
public void setSelectClause(String value)
value
- the SELECT clausepublic String getParams()
public void setParams(String value)
value
- the PARAM clausepublic int getMaxNumber()
public void setMaxNumber(int value)
value
- the MAX clausepublic String getPosition()
public void setPosition(String value)
value
- the POS clause (number or ALL)protected String makeQuery()
makeQuery
in class AddeDatasetURL
public static AddePointURL decodeURL(String baseURL)
baseURL
- url to decodeprotected void parseQuery(String query)
parseQuery
in class AddeDatasetURL
query
- query stringpublic static void main(String[] args)
args
- url to parseCopyright © 1996–2023 The SSEC Visualization Project. All rights reserved.