Documentation of 'edu.wisc.ssec.mcidas.adde.AddePointURL' Java class
AddePointURL
edu.wisc.ssec.mcidas.adde

Class 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 string
       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
    
     
    • 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 to
        requestType - type of request (REQ_IMAGEDATA, REQ_IMAGEDIR)
        group - ADDE group
        descriptor - 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 to
        requestType - 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 to
        requestType - type of request (REQ_IMAGEDATA, REQ_IMAGEDIR)
        group - ADDE group
        descriptor - ADDE descriptor
        position - dataset position (number or ALL)
        select - select clause
        paramList - parameter list
        maxNum - 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

You see the box below because you did not login.