|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.turbine.services.xmlrpc.util.FileHandler
A Handler for use with the XML-RPC service that will deal with clients sending file to the server (Turbine application) and clients getting files from the server (Turbine application). 1) In the first case where the client sends a file to the server, the client has encoded the file contents and passes those encoded file contents on to the server: Client --------> encoded file contents -------------> Server The server must then decode the file contents and write the decoded file contents to disk. 2) In the second case where the client gets a file from the the server, the server has encoded the file contents and passes those encoded file contents on to the client: Client <------- encoded file contents <------------- Server The client must then decode the file contents and write the decoded file contents to disk.
Constructor Summary | |
FileHandler()
Deprecated. Default Constructor |
Method Summary | |
java.lang.String |
get(java.lang.String targetLocationProperty,
java.lang.String fileName)
Deprecated. The client has indicated that it would like to get a file from the server. |
static java.lang.String |
readFileContents(java.lang.String targetLocationProperty,
java.lang.String fileName)
Deprecated. Return the content of file encoded for transfer |
static void |
remove(java.lang.String sourceLocationProperty,
java.lang.String sourceFileName)
Deprecated. Method to allow a client to remove a file from the server |
boolean |
send(java.lang.String fileContents,
java.lang.String targetLocationProperty,
java.lang.String fileName)
Deprecated. The client has indicated that it would like to send a file to the server and have it stored in a certain location on the server. |
static boolean |
writeFileContents(java.lang.String fileContents,
java.lang.String targetLocationProperty,
java.lang.String fileName)
Deprecated. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public FileHandler()
Method Detail |
public boolean send(java.lang.String fileContents, java.lang.String targetLocationProperty, java.lang.String fileName)
fileContents
- The contents of the file to store. It
is assumed that any xml content is properly encoded!fileName
- Name to give the file created to store
the contents.targetLocationProperty
- storage location of this file
is controlled by this property that is specified in
the TR.props file or an included properties file.public java.lang.String get(java.lang.String targetLocationProperty, java.lang.String fileName)
fileName
- Name to give the file created to store
the contents.targetLocationProperty
- storage location of this file
is controlled by this property that is specified in
the TR.props file or an included properties file.
public static java.lang.String readFileContents(java.lang.String targetLocationProperty, java.lang.String fileName)
targetLocationProperty
- path to file to encode.fileName
- file to encode
public static boolean writeFileContents(java.lang.String fileContents, java.lang.String targetLocationProperty, java.lang.String fileName)
public static void remove(java.lang.String sourceLocationProperty, java.lang.String sourceFileName)
sourceLocationProperty
- sourceFileName
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |