edu.wisc.ssec.mcidas.adde
Class AddePointURL
- java.lang.Object
-
- edu.wisc.ssec.mcidas.adde.AddeURL
-
- edu.wisc.ssec.mcidas.adde.AddeDatasetURL
-
- edu.wisc.ssec.mcidas.adde.AddePointURL
-
- All Implemented Interfaces:
- java.lang.Cloneable
public class AddePointURL extends AddeDatasetURL
A class for holding the ADDE URL for an image directory or data request. Decode the ADDE request for point data. If the request contains specific parameters (eg param=t), then the class variable binaryData is set to this param stringgroup=<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
-
-
Field Summary
Fields Modifier and Type Field and Description static java.lang.StringKEY_MAXKeyword for MAXstatic java.lang.StringKEY_NUMKeyword for MAXstatic java.lang.StringKEY_PARAMKeyword for PARAMstatic java.lang.StringKEY_POSKeyword for POSstatic java.lang.StringKEY_SELECTKeyword for SELECT-
Fields inherited from class edu.wisc.ssec.mcidas.adde.AddeDatasetURL
KEY_DESCRIPTOR, KEY_GROUP
-
Fields inherited from class edu.wisc.ssec.mcidas.adde.AddeURL
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 Summary
Constructors Constructor and Description AddePointURL()no arg constructorAddePointURL(java.lang.String host, java.lang.String requestType, java.lang.String group, java.lang.String descriptor)Create an AddePointURL.AddePointURL(java.lang.String host, java.lang.String requestType, java.lang.String group, java.lang.String descriptor, java.lang.String query)Create an ADDE PointURL from the given specs.AddePointURL(java.lang.String host, java.lang.String requestType, java.lang.String group, java.lang.String descriptor, java.lang.String position, java.lang.String select, java.lang.String paramList, int maxNum)Create an ADDE Point URL from the given spec
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description static AddePointURLdecodeURL(java.lang.String baseURL)Decode a URL and return an AddePointURLintgetMaxNumber()Get the MAX valuejava.lang.StringgetParams()Get the PARAM valuejava.lang.StringgetPosition()Get the POS valuejava.lang.StringgetSelectClause()Get the SELECT valuestatic voidmain(java.lang.String[] args)Test the parsingvoidsetMaxNumber(int value)Set the MAX valuevoidsetParams(java.lang.String value)Set the PARAM valuevoidsetPosition(java.lang.String value)Set the POS valuevoidsetSelectClause(java.lang.String value)Set the SELECT clause-
Methods inherited from class edu.wisc.ssec.mcidas.adde.AddeDatasetURL
getDescriptor, getGroup, setDescriptor, setGroup
-
Methods inherited from class edu.wisc.ssec.mcidas.adde.AddeURL
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
-
-
-
-
Field Detail
-
KEY_SELECT
public static final java.lang.String KEY_SELECT
Keyword for SELECT- See Also:
- Constant Field Values
-
KEY_PARAM
public static final java.lang.String KEY_PARAM
Keyword for PARAM- See Also:
- Constant Field Values
-
KEY_MAX
public static final java.lang.String KEY_MAX
Keyword for MAX- See Also:
- Constant Field Values
-
KEY_NUM
public static final java.lang.String KEY_NUM
Keyword for MAX- See Also:
- Constant Field Values
-
KEY_POS
public static final java.lang.String KEY_POS
Keyword for POS- See Also:
- Constant Field Values
-
-
Constructor Detail
-
AddePointURL
public AddePointURL()
no arg constructor
-
AddePointURL
public AddePointURL(java.lang.String host, java.lang.String requestType, java.lang.String group, java.lang.String descriptor)Create an AddePointURL.- Parameters:
host- host to send torequestType- type of request (REQ_IMAGEDATA, REQ_IMAGEDIR)group- ADDE groupdescriptor- ADDE descriptor
-
AddePointURL
public AddePointURL(java.lang.String host, java.lang.String requestType, java.lang.String group, java.lang.String descriptor, java.lang.String query)Create an ADDE PointURL from the given specs.- Parameters:
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)
-
AddePointURL
public AddePointURL(java.lang.String host, java.lang.String requestType, java.lang.String group, java.lang.String descriptor, java.lang.String position, java.lang.String select, java.lang.String paramList, int maxNum)Create an ADDE Point URL from the given spec- Parameters:
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 return
-
-
Method Detail
-
getSelectClause
public java.lang.String getSelectClause()
Get the SELECT value- Returns:
- the PLACE value
-
setSelectClause
public void setSelectClause(java.lang.String value)
Set the SELECT clause- Parameters:
value- the SELECT clause
-
getParams
public java.lang.String getParams()
Get the PARAM value- Returns:
- the PARAM value
-
setParams
public void setParams(java.lang.String value)
Set the PARAM value- Parameters:
value- the PARAM clause
-
getMaxNumber
public int getMaxNumber()
Get the MAX value- Returns:
- the MAX value
-
setMaxNumber
public void setMaxNumber(int value)
Set the MAX value- Parameters:
value- the MAX clause
-
getPosition
public java.lang.String getPosition()
Get the POS value- Returns:
- the POS value (number or ALL)
-
setPosition
public void setPosition(java.lang.String value)
Set the POS value- Parameters:
value- the POS clause (number or ALL)
-
decodeURL
public static AddePointURL decodeURL(java.lang.String baseURL)
Decode a URL and return an AddePointURL- Parameters:
baseURL- url to decode- Returns:
- an AddePointURL object (or null)
-
main
public static void main(java.lang.String[] args)
Test the parsing- Parameters:
args- url to parse
-
-
DMelt 3.0 © DataMelt by jWork.ORG