at.spardat.xma.boot.transport
Class Result

java.lang.Object
  extended byat.spardat.xma.boot.transport.Result

public class Result
extends java.lang.Object

Result-objects are used by the transport layer, to store server request results. it contains the result buffer and additional information about the resource.


Constructor Summary
Result()
          initialize members
 
Method Summary
 byte[] getBuffer()
          Get the buffer containing the content data returned from the server.
 java.io.InputStream getContent()
          get an InputStream to read the resource.
 int getContentLength()
          Gets the length of the content returned from the server in bytes.
 java.lang.String getEtag()
          Get the ETag which is used for conditional gets from the server.
 long getExpirationDate()
          Gets the expiration date of the resource as returned by the server.
 long getLastModified()
          Gets the the last modified information returned from the server.
 java.lang.String getTransformations()
          Get the descripton of the list of transforming filters applied at the server side (e.g. compression, hash)
 boolean isModified()
          Does this result object contain a modified resource loaded from server ?
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Result

public Result()
initialize members

Method Detail

getContent

public java.io.InputStream getContent()
get an InputStream to read the resource.

Returns:
InputStream returns an input stream to the result buffer.

getEtag

public java.lang.String getEtag()
Get the ETag which is used for conditional gets from the server.

Returns:
String etag value

isModified

public boolean isModified()
Does this result object contain a modified resource loaded from server ?

Returns:
true if the resource contains new data.

getContentLength

public int getContentLength()
Gets the length of the content returned from the server in bytes.

Returns:
contentLength buffer length

getExpirationDate

public long getExpirationDate()
Gets the expiration date of the resource as returned by the server.

Returns:
long the expiration date or 0 if no expiration date was returned by the server.

getLastModified

public long getLastModified()
Gets the the last modified information returned from the server.

Returns:
long last modified

getBuffer

public byte[] getBuffer()
Get the buffer containing the content data returned from the server.

Returns:
byte[] buffer

getTransformations

public java.lang.String getTransformations()
Get the descripton of the list of transforming filters applied at the server side (e.g. compression, hash)

Since:
1.3.0
See Also:
at.spardat.xma.session.Transform