org.icenigrid.gridsam.core.util
Class FileDriverResponseParser

java.lang.Object
  extended by 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 output messagestd 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.
 
Method Summary
 java.lang.String getError()
           
 java.lang.String getOutput()
           
 boolean isSuccess()
           
 void setError(java.lang.String error)
           
 void setOutput(java.lang.String output)
           
 void setSuccess(boolean isSuccess)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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.
Method Detail

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.