Copyright (c) 2003, 2007 s IT Solutions AT Spardat GmbH .
All rights reserved. This program and the accompanying materials
are made available under the terms of the Eclipse Public License v1.0
which accompanies this distribution, and is available at
s IT Solutions AT Spardat GmbH - initial API and implementation
-objects are used by the transport layer, to store server request results.
it contains the result buffer and additional information about the resource.
- s2877, s3595
- $Id: Result.java 2084 2007-11-27 14:53:31Z s3460 $
if the server returns an expiration date for the resource,
it is stored in this member. the default is 0.
the last modified information returned from server.
the length of the content returned from the server in bytes.
this is equal to the buffer length.
the ETag is used in combination with conditional gets from the server.
list of transforming filters applied at the server side (e.g. compression, hash)
buffer that contains the server result as byte array.
get an InputStream to read the resource.
- InputStream returns an input stream to the result buffer.
Get the ETag which is used for conditional gets from the server.
- String etag value
Does this result object contain a modified resource loaded from server ?
- true if the resource contains new data.
Gets the length of the content returned from the server in bytes.
- contentLength buffer length
Gets the expiration date of the resource as returned by the server.
- long the expiration date or 0 if no expiration date was returned by the server.
Gets the the last modified information returned from the server.
- long last modified
Get the buffer containing the content data returned from the server.
Sets the buffer containing the data returned from the server. This method my only be called
by an implementation of
Get the descripton of the list of transforming filters applied at the server side
(e.g. compression, hash)
- See also: