org.eclipse.ohf.wado.client.impl
Class WADOResponseImpl

java.lang.Object
  extended by org.eclipse.ohf.wado.client.impl.WADOResponseImpl
All Implemented Interfaces:
WADOResponse

public class WADOResponseImpl
extends java.lang.Object
implements WADOResponse


Constructor Summary
WADOResponseImpl()
           
 
Method Summary
 void doneReading()
           
 WADORequest getProcessedWadoRequest()
          The method will return the WADORequest object that contains the information sent to the WADO server in the request.
 java.lang.String getResponseMimeType()
          The method will return the MIME type of the data returned from the WADO server.
 java.io.InputStream getRetrievedData()
          The input stream to the data returned from the WADO server.
 void setConnection(java.net.HttpURLConnection connection)
           
 void setMimeType(java.lang.String mimeType)
          Sets the MIME type of the WADO response data.
 void setRetrievedData(java.io.InputStream retrievedData)
          Sets the InputStream of the data retrieved from WADO server in response to the request.
 void setWadoRequest(WADORequest wadoRequest)
          Sets the WADORequest object that contains information submitted to the WADO server in the request.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WADOResponseImpl

public WADOResponseImpl()
Method Detail

getProcessedWadoRequest

public WADORequest getProcessedWadoRequest()
Description copied from interface: WADOResponse
The method will return the WADORequest object that contains the information sent to the WADO server in the request.

Specified by:
getProcessedWadoRequest in interface WADOResponse
Returns:
The WADORequest object of the request that this is its response

getResponseMimeType

public java.lang.String getResponseMimeType()
Description copied from interface: WADOResponse
The method will return the MIME type of the data returned from the WADO server.

Specified by:
getResponseMimeType in interface WADOResponse
Returns:
The WADO response MIME type

getRetrievedData

public java.io.InputStream getRetrievedData()
Description copied from interface: WADOResponse
The input stream to the data returned from the WADO server. This data is the response of the WADO request and its MIME type can be retrieved by calling the getResponseMimeType() method.

Specified by:
getRetrievedData in interface WADOResponse
Returns:
The InputStream of data retrieved from the WADO server

setMimeType

public void setMimeType(java.lang.String mimeType)
Sets the MIME type of the WADO response data.

Parameters:
mimeType - The MIME type of the WADO response data

setRetrievedData

public void setRetrievedData(java.io.InputStream retrievedData)
Sets the InputStream of the data retrieved from WADO server in response to the request.

Parameters:
retrievedData - The InputStream of the data retrieved from the WADO server

setWadoRequest

public void setWadoRequest(WADORequest wadoRequest)
Sets the WADORequest object that contains information submitted to the WADO server in the request.

Parameters:
wadoRequest - The WADORequest used for sendind WADO request

doneReading

public void doneReading()
Specified by:
doneReading in interface WADOResponse

setConnection

public void setConnection(java.net.HttpURLConnection connection)