|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgov.nasa.gsfc.hessi.jidl.prep.client.bridge.VxoPrepClient
public class VxoPrepClient
This class bridges between IDL and the WSDL auto-generated stub classed generated with the help of the Java Web Toolkit (Jaxws 2.1.4). The WSDL is loaded from the PrepServer directly http://wilco.gsfc.nasa.gov:8080/VxoPrepServer/vxoprep?wsdl This client can be used dependent or independent from IDL!
| Field Summary | |
|---|---|
(package private) static org.apache.log4j.Logger |
logger
Local Logger instance |
private VxoPrepServer |
server
Web server stub |
private VxoPrep |
service
Web service stub |
| Constructor Summary | |
|---|---|
VxoPrepClient()
Default constructor |
|
| Method Summary | |
|---|---|
void |
addParameter(PrepParameterSet paramSet,
java.lang.String paramName,
boolean value)
Necessary to add PrepParameter (name - value) pairs. |
void |
addParameter(PrepParameterSet paramSet,
java.lang.String paramName,
boolean[] value)
Necessary to add PrepParameter (name - value) pairs. |
void |
addParameter(PrepParameterSet paramSet,
java.lang.String paramName,
byte value)
Necessary to add PrepParameter (name - value) pairs. |
void |
addParameter(PrepParameterSet paramSet,
java.lang.String paramName,
byte[] value)
Necessary to add PrepParameter (name - value) pairs. |
void |
addParameter(PrepParameterSet paramSet,
java.lang.String paramName,
double value)
Necessary to add PrepParameter (name - value) pairs. |
void |
addParameter(PrepParameterSet paramSet,
java.lang.String paramName,
double[] value)
Necessary to add PrepParameter (name - value) pairs. |
void |
addParameter(PrepParameterSet paramSet,
java.lang.String paramName,
int value)
Necessary to add PrepParameter (name - value) pairs. |
void |
addParameter(PrepParameterSet paramSet,
java.lang.String paramName,
int[] value)
Necessary to add PrepParameter (name - value) pairs. |
void |
addParameter(PrepParameterSet paramSet,
java.lang.String paramName,
long value)
Necessary to add PrepParameter (name - value) pairs. |
void |
addParameter(PrepParameterSet paramSet,
java.lang.String paramName,
long[] value)
Necessary to add PrepParameter (name - value) pairs. |
void |
addParameter(PrepParameterSet paramSet,
java.lang.String paramName,
short value)
Necessary to add PrepParameter (name - value) pairs. |
void |
addParameter(PrepParameterSet paramSet,
java.lang.String paramName,
short[] value)
Necessary to add PrepParameter (name - value) pairs. |
void |
addParameter(PrepParameterSet paramSet,
java.lang.String paramName,
java.lang.String value)
Necessary to add PrepParameter (name - value) pairs. |
void |
addParameter(PrepParameterSet paramSet,
java.lang.String paramName,
java.lang.String[] value)
Necessary to add PrepParameter (name - value) pairs. |
private void |
addParameterGen(PrepParameterSet paramSet,
java.lang.String paramName,
java.lang.Object value)
Necessary to add PrepParameter (name - value) pairs. |
PrepParameterSet |
createPrepParameterSet(java.lang.String instrument)
This method creates an empty PrepParameterSet that can be filled with all necessary data. |
void |
IDLoutput(com.idl.javaidl.JIDLObjectI sender,
java.lang.String message)
The callback class for IDL to log its output to Java |
PrepResponse |
preprocess(PrepParameterSet parameters,
java.lang.String file)
This method initiates the preprocessing |
static byte[] |
readByteArrayFromFile(java.lang.String filePath)
Helper method to read binary data from the disk to a byte[] |
void |
writeDataToFile(byte[] data,
java.lang.String filePath)
Helper method to write out data to the disk |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
static org.apache.log4j.Logger logger
Logger instance
private VxoPrep service
private VxoPrepServer server
| Constructor Detail |
|---|
public VxoPrepClient()
| Method Detail |
|---|
public PrepResponse preprocess(PrepParameterSet parameters,
java.lang.String file)
parameters - is the PrepParameterSet that contains all necessary PrepParameter.file - the output file to which all data is written to.
java.lang.IllegalArgumentException - if parameters is nullpublic PrepParameterSet createPrepParameterSet(java.lang.String instrument)
PrepParameterSet that can be filled with all necessary data.
instrument - is the instrument type
PrepParameterSet.
public void addParameter(PrepParameterSet paramSet,
java.lang.String paramName,
boolean value)
PrepParameter (name - value) pairs. In order to work smoothly with IDL,
there are multiple versions of this method tailored to the different primitive types.
paramSet - the PrepParameterSet to which the (name - value) pair is added toparamName - is the parameter name (i.e. 'cosmic')value - is the parameter value (i.e. 1)
public void addParameter(PrepParameterSet paramSet,
java.lang.String paramName,
byte value)
PrepParameter (name - value) pairs. In order to work smoothly with IDL,
there are multiple versions of this method tailored to the different primitive types.
paramSet - the PrepParameterSet to which the (name - value) pair is added toparamName - is the parameter name (i.e. 'cosmic')value - is the parameter value (i.e. 1)
public void addParameter(PrepParameterSet paramSet,
java.lang.String paramName,
short value)
PrepParameter (name - value) pairs. In order to work smoothly with IDL,
there are multiple versions of this method tailored to the different primitive types.
paramSet - the PrepParameterSet to which the (name - value) pair is added toparamName - is the parameter name (i.e. 'cosmic')value - is the parameter value (i.e. 1)
public void addParameter(PrepParameterSet paramSet,
java.lang.String paramName,
int value)
PrepParameter (name - value) pairs. In order to work smoothly with IDL,
there are multiple versions of this method tailored to the different primitive types.
paramSet - the PrepParameterSet to which the (name - value) pair is added toparamName - is the parameter name (i.e. 'cosmic')value - is the parameter value (i.e. 1)
public void addParameter(PrepParameterSet paramSet,
java.lang.String paramName,
long value)
PrepParameter (name - value) pairs. In order to work smoothly with IDL,
there are multiple versions of this method tailored to the different primitive types.
paramSet - the PrepParameterSet to which the (name - value) pair is added toparamName - is the parameter name (i.e. 'cosmic')value - is the parameter value (i.e. 1)
public void addParameter(PrepParameterSet paramSet,
java.lang.String paramName,
double value)
PrepParameter (name - value) pairs. In order to work smoothly with IDL,
there are multiple versions of this method tailored to the different primitive types.
paramSet - the PrepParameterSet to which the (name - value) pair is added toparamName - is the parameter name (i.e. 'cosmic')value - is the parameter value (i.e. 1)
public void addParameter(PrepParameterSet paramSet,
java.lang.String paramName,
java.lang.String value)
PrepParameter (name - value) pairs. In order to work smoothly with IDL,
there are multiple versions of this method tailored to the different primitive types.
paramSet - the PrepParameterSet to which the (name - value) pair is added toparamName - is the parameter name (i.e. 'cosmic')value - is the parameter value (i.e. 1)
public void addParameter(PrepParameterSet paramSet,
java.lang.String paramName,
boolean[] value)
PrepParameter (name - value) pairs. In order to work smoothly with IDL,
there are multiple versions of this method tailored to the different primitive types.
paramSet - the PrepParameterSet to which the (name - value) pair is added toparamName - is the parameter name (i.e. 'cosmic')value - is the parameter value (i.e. 1)
public void addParameter(PrepParameterSet paramSet,
java.lang.String paramName,
byte[] value)
PrepParameter (name - value) pairs. In order to work smoothly with IDL,
there are multiple versions of this method tailored to the different primitive types.
paramSet - the PrepParameterSet to which the (name - value) pair is added toparamName - is the parameter name (i.e. 'cosmic')value - is the parameter value (i.e. 1)
public void addParameter(PrepParameterSet paramSet,
java.lang.String paramName,
short[] value)
PrepParameter (name - value) pairs. In order to work smoothly with IDL,
there are multiple versions of this method tailored to the different primitive types.
paramSet - the PrepParameterSet to which the (name - value) pair is added toparamName - is the parameter name (i.e. 'cosmic')value - is the parameter value (i.e. 1)
public void addParameter(PrepParameterSet paramSet,
java.lang.String paramName,
int[] value)
PrepParameter (name - value) pairs. In order to work smoothly with IDL,
there are multiple versions of this method tailored to the different primitive types.
paramSet - the PrepParameterSet to which the (name - value) pair is added toparamName - is the parameter name (i.e. 'cosmic')value - is the parameter value (i.e. 1)
public void addParameter(PrepParameterSet paramSet,
java.lang.String paramName,
long[] value)
PrepParameter (name - value) pairs. In order to work smoothly with IDL,
there are multiple versions of this method tailored to the different primitive types.
paramSet - the PrepParameterSet to which the (name - value) pair is added toparamName - is the parameter name (i.e. 'cosmic')value - is the parameter value (i.e. 1)
public void addParameter(PrepParameterSet paramSet,
java.lang.String paramName,
double[] value)
PrepParameter (name - value) pairs. In order to work smoothly with IDL,
there are multiple versions of this method tailored to the different primitive types.
paramSet - the PrepParameterSet to which the (name - value) pair is added toparamName - is the parameter name (i.e. 'cosmic')value - is the parameter value (i.e. 1)
public void addParameter(PrepParameterSet paramSet,
java.lang.String paramName,
java.lang.String[] value)
PrepParameter (name - value) pairs. In order to work smoothly with IDL,
there are multiple versions of this method tailored to the different primitive types.
paramSet - the PrepParameterSet to which the (name - value) pair is added toparamName - is the parameter name (i.e. 'cosmic')value - is the parameter value (i.e. 1)
private void addParameterGen(PrepParameterSet paramSet,
java.lang.String paramName,
java.lang.Object value)
PrepParameter (name - value) pairs. In order to work smoothly with IDL,
there are multiple versions of this method tailored to the different primitive types.
paramSet - the PrepParameterSet to which the (name - value) pair is added toparamName - is the parameter name (i.e. 'cosmic')value - is the parameter value (i.e. 1)
public void writeDataToFile(byte[] data,
java.lang.String filePath)
data - is the byte[] to be written to the diskfilePath - is the path to where the data are written topublic static byte[] readByteArrayFromFile(java.lang.String filePath)
filePath - is the file to be read
public void IDLoutput(com.idl.javaidl.JIDLObjectI sender,
java.lang.String message)
IDLoutput in interface com.idl.javaidl.JIDLOutputListenersender - is the logging objectmessage - is the message to be logged
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||