org.icenigrid.gridsam.core.util
Class FileDriverResponseParser
java.lang.Object
org.icenigrid.gridsam.core.util.FileDriverResponseParser
public class FileDriverResponseParser
- extends java.lang.Object
Purpose:
The parser class for response of File driver.
The response will be like the following format:
true/falsestd error message
- Version:
- 1.0.1 2008-1-5
- Author:
- RibPig Qiao
Constructor Summary |
FileDriverResponseParser(java.lang.String operation,
java.lang.String response)
Construct a response parser instance using the operaion and response content. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FileDriverResponseParser
public FileDriverResponseParser(java.lang.String operation,
java.lang.String response)
throws java.rmi.RemoteException
- Construct a response parser instance using the operaion and response content.
- Parameters:
operation
- the file opertaion, including mkdir etc.response
- The xml content of the response returned by file_driver.
- Throws:
java.rmi.RemoteException
- When error occurd during the process of response parsing.
getError
public java.lang.String getError()
- Returns:
- the error
setError
public void setError(java.lang.String error)
- Parameters:
error
- the error to set
isSuccess
public boolean isSuccess()
- Returns:
- the isSuccess
setSuccess
public void setSuccess(boolean isSuccess)
- Parameters:
isSuccess
- the isSuccess to set
getOutput
public java.lang.String getOutput()
- Returns:
- the output
setOutput
public void setOutput(java.lang.String output)
- Parameters:
output
- the output to set
Copyright © 2008. All Rights Reserved.