Class RasHttpRequest

  • All Implemented Interfaces:
    RasCommDefs, RasGlobalDefs

    public class RasHttpRequest
    extends java.lang.Object
    implements RasCommDefs, RasGlobalDefs
    This class handles a HTTP-request to the RasDaMan server. The specified RasDaMan server is contacted, the specified command is sent to the server, and the result of the query is retrieved and stored in a byte array. The specification of the communication protocol is given below.

    • Constructor Detail

      • RasHttpRequest

        public RasHttpRequest()
    • Method Detail

      • getResultType

        public byte getResultType()
        returns the result type (MDDColl, SkalarColl, Error, Integer)
      • getResult

        public java.lang.Object getResult()
        returns the result of the query
      • getIntegerResult

        public int getIntegerResult()
        returns the result of the query as an Integer
      • getDCollection

        public DCollection getDCollection()
        returns the result of the query as a DCollection
      • getDBag

        public DBag getDBag()
        returns the result of the query as a DBag
      • setClientType

        public void setClientType​(java.lang.String clientType)
        This method specifies the type of the client. The clientType determines how the results are coded and returned by the server. Default type and the only type supported right now is "RASCLIENT". The results are sent back using the "application/octet-stream" mime type and are coded as a byte stream as described in the class documentation.

        Future versions will support other types like, for example, "BROWSER", where the results will be coded as standard HTTP-responses of certain mime types (for example "image/gif").

        Parameters:
        clientType - currently only "RASCLIENT" supported