public class CORBARequester
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected AoSession |
aosession |
protected static int |
DEFAULTPORT |
protected boolean |
isValid |
protected CORBAFileServerIF |
server |
protected java.lang.String |
serverURL |
protected static java.io.File |
tmpDir |
Constructor and Description |
---|
CORBARequester(AoSession aos)
Constructor with an AoSession to authenticate at the CORBAFileserver
|
Modifier and Type | Method and Description |
---|---|
java.io.File |
requestFile(java.lang.String corbaref)
Request the given reference from the CORBAFileServer and return the File where it was put to on the
local machine.
|
java.lang.String |
sendFile(java.io.File file)
Sends a file to the CFS and returns the Reference as String
Used FwkPropertyBus Props are:
Externalrefs.CORBA.Port : Port to used when communicating
|
void |
setUp()
Method to set up the CFS.
|
protected static final int DEFAULTPORT
protected static java.io.File tmpDir
protected CORBAFileServerIF server
protected AoSession aosession
protected java.lang.String serverURL
protected boolean isValid
public CORBARequester(AoSession aos)
aos
- The Session with the auth. datapublic void setUp()
public java.lang.String sendFile(java.io.File file)
file
- the file to be put to the CFSpublic java.io.File requestFile(java.lang.String corbaref)
corbaref
-