edu.wisc.ssec.mcidas.adde
Class AddeDatasetURL
- java.lang.Object
-
- edu.wisc.ssec.mcidas.adde.AddeURL
-
- edu.wisc.ssec.mcidas.adde.AddeDatasetURL
-
- All Implemented Interfaces:
- java.lang.Cloneable
- Direct Known Subclasses:
- AddeImageURL, AddePointURL
public class AddeDatasetURL extends AddeURL
A subclass of AddeURL to support queries on datasets.URLs must all have the following format: adde://host/request?keyword_1=value_1&keyword_2=value_2 group=<groupname> ADDE dataset group descr=<descriptor> ADDE dataset descriptor user=<user_id> ADDE user identification proj=<proj #> a valid ADDE project number trace=<0/1> setting to 1 tells server to write debug trace file version= ADDE version number, currently 1 except for griddata requests debug= set to true to watch the printlns stream by compress= set to "gzip" if you want to use the GZIP compression or "compress" if you want to use transfers in Unix compress format (You need to have the VisAD package if you want to support this.) default = none. port= Socket port to connect on. Overridden by a port specified in the host (e.g., adde.ucar.edu:500)
-
-
Field Summary
Fields Modifier and Type Field and Description static java.lang.StringKEY_DESCRIPTORKeyword for dataset descriptorstatic java.lang.StringKEY_GROUPKeyword for dataset 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 AddeDatasetURL()Create an ADDE URLAddeDatasetURL(java.lang.String host, java.lang.String requestType, java.lang.String group)Create an ADDE Dataset URL from the given specAddeDatasetURL(java.lang.String host, java.lang.String requestType, java.lang.String group, java.lang.String descriptor)Create an ADDE Dataset URL from the given specAddeDatasetURL(java.lang.String host, java.lang.String requestType, java.lang.String group, java.lang.String descriptor, java.lang.String extraKeys)Create an ADDE URL from the given spec
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.lang.StringgetDescriptor()Get the dataset descriptor for this ADDE URLjava.lang.StringgetGroup()Get the group for this ADDE URLvoidsetDescriptor(java.lang.String desc)Set the dataset descriptor for this ADDE URLvoidsetGroup(java.lang.String group)Set the group for this ADDE URL-
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_GROUP
public static final java.lang.String KEY_GROUP
Keyword for dataset group- See Also:
- Constant Field Values
-
KEY_DESCRIPTOR
public static final java.lang.String KEY_DESCRIPTOR
Keyword for dataset descriptor- See Also:
- Constant Field Values
-
-
Constructor Detail
-
AddeDatasetURL
public AddeDatasetURL()
Create an ADDE URL
-
AddeDatasetURL
public AddeDatasetURL(java.lang.String host, java.lang.String requestType, java.lang.String group)Create an ADDE Dataset URL from the given spec- Parameters:
host- host to send torequestType- type of request (REQ_*)group- ADDE group
-
AddeDatasetURL
public AddeDatasetURL(java.lang.String host, java.lang.String requestType, java.lang.String group, java.lang.String descriptor)Create an ADDE Dataset URL from the given spec- Parameters:
host- host to send torequestType- type of request (REQ_*)group- ADDE groupdescriptor- ADDE descriptor (may be null)
-
AddeDatasetURL
public AddeDatasetURL(java.lang.String host, java.lang.String requestType, java.lang.String group, java.lang.String descriptor, java.lang.String extraKeys)Create an ADDE URL from the given spec- Parameters:
host- host to send torequestType- type of request (REQ_*)group- ADDE groupdescriptor- ADDE descriptor (may be null)extraKeys- extraKeys string (key/value pairs)
-
-
Method Detail
-
getGroup
public java.lang.String getGroup()
Get the group for this ADDE URL- Returns:
- the group
-
setGroup
public void setGroup(java.lang.String group)
Set the group for this ADDE URL- Parameters:
group- the group
-
getDescriptor
public java.lang.String getDescriptor()
Get the dataset descriptor for this ADDE URL- Returns:
- the dataset descriptor
-
setDescriptor
public void setDescriptor(java.lang.String desc)
Set the dataset descriptor for this ADDE URL- Parameters:
desc- the dataset descriptor
-
-
DMelt 3.0 © DataMelt by jWork.ORG