| org.restlet.ext.spring.SpringResource
SpringResource | public class SpringResource extends AbstractResource (Code) | | Spring Resource based on a Restlet Representation. Do not get confused,
Spring's notion of Resource is different from Restlet's one, actually it's
closer to Restlet's Representations.
See Also: Spring home page author: Jerome Louvel (contact@noelios.com) |
Method Summary | |
public boolean | equals(Object obj) This implementation compares the underlying InputStream. | public boolean | exists() This implementation always returns true . | public String | getDescription() Returns the description. | public InputStream | getInputStream() This implementation throws IllegalStateException if attempting to read
the underlying stream multiple times. | public int | hashCode() This implementation returns the hash code of the underlying InputStream. | public boolean | isOpen() This implementation always returns true . |
SpringResource | public SpringResource(Representation representation)(Code) | | Constructor.
Parameters: representation - The description. |
SpringResource | public SpringResource(Representation representation, String description)(Code) | | Constructor.
Parameters: representation - The description. Parameters: description - The description. |
equals | public boolean equals(Object obj)(Code) | | This implementation compares the underlying InputStream.
|
exists | public boolean exists()(Code) | | This implementation always returns true .
|
getDescription | public String getDescription()(Code) | | Returns the description.
The description. |
hashCode | public int hashCode()(Code) | | This implementation returns the hash code of the underlying InputStream.
|
isOpen | public boolean isOpen()(Code) | | This implementation always returns true .
|
|
|