|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.core.io.AbstractResource
org.restlet.ext.spring.SpringResource
public class SpringResource
Spring Resource based on a Restlet Representation. DON'T GET CONFUSED, Spring's notion of Resource is different from Restlet's one, actually it's closer to Restlet's Representations.
Constructor Summary | |
---|---|
SpringResource(Representation representation)
Constructor. |
|
SpringResource(Representation representation,
java.lang.String description)
Constructor. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
This implementation compares the underlying InputStream. |
boolean |
exists()
This implementation always returns true . |
java.lang.String |
getDescription()
Returns the description. |
java.io.InputStream |
getInputStream()
This implementation throws IllegalStateException if attempting to read the underlying stream multiple times. |
int |
hashCode()
This implementation returns the hash code of the underlying InputStream. |
boolean |
isOpen()
This implementation always returns true . |
Methods inherited from class org.springframework.core.io.AbstractResource |
---|
createRelative, getFile, getFileForLastModifiedCheck, getFilename, getURI, getURL, isReadable, lastModified, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SpringResource(Representation representation)
representation
- The description.public SpringResource(Representation representation, java.lang.String description)
representation
- The description.description
- The description.Method Detail |
---|
public boolean equals(java.lang.Object obj)
equals
in class AbstractResource
public boolean exists()
true
.
exists
in interface Resource
exists
in class AbstractResource
public java.lang.String getDescription()
public java.io.InputStream getInputStream() throws java.io.IOException, java.lang.IllegalStateException
java.io.IOException
java.lang.IllegalStateException
public int hashCode()
hashCode
in class AbstractResource
public boolean isOpen()
true
.
isOpen
in interface Resource
isOpen
in class AbstractResource
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |