public class FileServer extends AbstractImplementation implements TransferIF
TransferIF,
CORBAFileServer| Modifier and Type | Class and Description |
|---|---|
class |
FileServer.ReadPipe
The converter from InputStreamIF to InputStream
|
class |
FileServer.SavePipe
The converter from InputStream to InputStreamIF
|
arguments, ctx, descriptor, NEW_LINE| Constructor and Description |
|---|
FileServer() |
| Modifier and Type | Method and Description |
|---|---|
protected CORBAFileServerIF |
connect() |
void |
delete(java.lang.String name)
Delete the data associated with the given name.
|
void |
deleteForInstance(java.lang.String name,
T_LONGLONG aid,
T_LONGLONG iid)
Delete the data associated with the given name.
|
protected int |
getBufferSize() |
void |
init()
Initialize the object.
|
java.io.InputStream |
read(java.lang.String name)
Read the data associated with the given name.
|
java.io.InputStream |
readForInstance(java.lang.String name,
T_LONGLONG aid,
T_LONGLONG iid)
Read the data associated with the given name.
|
java.lang.String |
save(java.lang.String name,
java.lang.String subDir,
java.io.InputStream stream)
Save the data associated with the given input stream.
|
java.lang.String |
saveForInstance(java.lang.String name,
java.lang.String subDir,
T_LONGLONG aid,
T_LONGLONG iid,
java.io.InputStream stream)
Save the data associated with the given intput stream.
|
void |
setSessionRef(java.lang.String referenceName)
Set the session reference to that this transferable belongs.
|
addAttributesToNameValueUnitArray, addAttributeToNameValueUnitArray, addStringValueToNameValueUnitArray, checkDirectoy, checkDirectoy, checkDirectoy, checkFile, checkFile, checkFile, checkIntValue, checkStringValue, compressNvuArray, createMessageFromPropertyFile, createMessageFromPropertyFile, createMessageFromPropertyFile, createTsUnionFromObject, deleteRowWithAttributes, getArguments, getContext, getDescriptor, getListFromProperty, getMandatoryProperty, getMandatoryProperty, getMandatoryPropertyAsInt, getMandatoryPropertyAsList, getMandatoryPropertyWithRuleException, getNvuArrayFromMap, getNvuArrayFromMap, getNvuObjectWithName, getNvuObjectWithName, getNvuObjectWithName, getOdsCacheFromProperty, getOptioanlPropertyAsInt, getOptionalProperty, getOptionalProperty, getOptionalProperty, getOptionalProperty, getOptionalPropertyAsBoolean, getOptionalPropertyAsBoolean, getOptionalPropertyAsBoolean, getOptionalPropertyAsList, makeUpperCaseKeyword, removeAttributeFromNameValueUnitArray, removeAttributeFromNameValueUnitArray, setArguments, setContext, setDescriptorclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetContext, getDescriptor, setArguments, setContext, setDescriptorpublic void init()
throws InitializationFailedException
init in interface ImplementationIFinit in class AbstractImplementationInitializationFailedException - if the initialization fails.protected CORBAFileServerIF connect()
public void setSessionRef(java.lang.String referenceName)
setSessionRef in interface TransferIFreferenceName - the reference name.public java.lang.String save(java.lang.String name,
java.lang.String subDir,
java.io.InputStream stream)
throws java.lang.Exception
save in interface TransferIFname - the name of the file.subDir - an alternative sub directory, that can be specified, if the filename should not used to determine the destination folder.stream - the input stream, ready to read by the server.java.lang.Exceptionpublic java.lang.String saveForInstance(java.lang.String name,
java.lang.String subDir,
T_LONGLONG aid,
T_LONGLONG iid,
java.io.InputStream stream)
throws java.lang.Exception
saveForInstance in interface TransferIFname - the name of the file.subDir - an alternative sub directory, that can be specified, if the filename should not used to determine the destination folder.aid - the application element id.iid - the instance element id.stream - the input stream, ready to read by the server.java.lang.Exceptionpublic void delete(java.lang.String name)
throws java.lang.Exception
delete in interface TransferIFname - the name of the file.java.lang.Exceptionpublic void deleteForInstance(java.lang.String name,
T_LONGLONG aid,
T_LONGLONG iid)
throws java.lang.Exception
deleteForInstance in interface TransferIFname - the name of the file.java.lang.Exceptionpublic java.io.InputStream read(java.lang.String name)
throws java.lang.Exception
read in interface TransferIFname - the name of the file.java.lang.Exceptionpublic java.io.InputStream readForInstance(java.lang.String name,
T_LONGLONG aid,
T_LONGLONG iid)
throws java.lang.Exception
readForInstance in interface TransferIFname - the name of the file.aid - the application element id.iid - the instance element id.java.lang.Exceptionprotected int getBufferSize()