gov.nasa.gsfc.hessi.jidl.prep.server.Parameter
Class PrepParameterSet

java.lang.Object
  extended by gov.nasa.gsfc.hessi.jidl.prep.server.Parameter.PrepParameterSet

public class PrepParameterSet
extends java.lang.Object

This class is being sent from the client to the server and contains a set of PrepParameter that will be used by the IDL instrument preprocessing routines.

Since:
Revision 19
Author:
Laszlo Istvan Etesi

Field Summary
private  java.lang.String instrument
          This specifies the instrument and therefore the preprocessing routines that have to be used.
private  java.util.List<PrepParameter> parameter
          This is the list of applied preprocessing directives and its values
private  byte[] raw
          If the data comes in form of a byte[] package attached by the client, this must be set.
private  java.lang.String url
          If the data comes in form of a url, this must be set.
 
Constructor Summary
PrepParameterSet()
          Default non-arg constructor
PrepParameterSet(java.lang.String instrument)
          Default constructor
 
Method Summary
 java.lang.String getInstrument()
          Accessor method for instrument
 java.util.List<PrepParameter> getParameters()
          Accessor method for the PrepParameter attached to this PrepParameterSet.
 byte[] getRawData()
          Accessor method to get the raw data as byte[] (if applicable)
 java.lang.String getUrl()
          Accessor method for url
 void setInstrument(java.lang.String instrument)
          Mutator method for instrument
 void setParameters(java.util.List<PrepParameter> parameter)
          Mutator method to set the PrepParameter for this preprocessing request.
 void setRawData(byte[] raw)
          Mutator method to set the raw data as byte[] (if applicable)
 void setUrl(java.lang.String url)
          Mutator method for url
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

url

private java.lang.String url
If the data comes in form of a url, this must be set.


raw

private byte[] raw
If the data comes in form of a byte[] package attached by the client, this must be set.


parameter

private java.util.List<PrepParameter> parameter
This is the list of applied preprocessing directives and its values


instrument

private java.lang.String instrument
This specifies the instrument and therefore the preprocessing routines that have to be used.

Constructor Detail

PrepParameterSet

public PrepParameterSet()
Default non-arg constructor


PrepParameterSet

public PrepParameterSet(java.lang.String instrument)
Default constructor

Parameters:
instrument - is the instrument type for this preprocessing request
Method Detail

getInstrument

public java.lang.String getInstrument()
Accessor method for instrument

Returns:
the instrument

setInstrument

public void setInstrument(java.lang.String instrument)
Mutator method for instrument

Parameters:
instrument - specifies the instrument type

getParameters

public java.util.List<PrepParameter> getParameters()
Accessor method for the PrepParameter attached to this PrepParameterSet. Come as a List

Returns:
a List of PrepParameter

setParameters

public void setParameters(java.util.List<PrepParameter> parameter)
Mutator method to set the PrepParameter for this preprocessing request.

Parameters:
parameter - is a List containing all PrepParameter used in this preprocessing request

getUrl

public java.lang.String getUrl()
Accessor method for url

Returns:
the url to the data file (if applicable)

setUrl

public void setUrl(java.lang.String url)
Mutator method for url

Parameters:
url - is the HTTP url to the data file (if applicable)

getRawData

public byte[] getRawData()
Accessor method to get the raw data as byte[] (if applicable)

Returns:
the byte[] of raw data (if applicable)

setRawData

public void setRawData(byte[] raw)
Mutator method to set the raw data as byte[] (if applicable)

Parameters:
raw - is a byte[] of raw data directly specified by the client (if applicable)