|
||||||||||
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. Do not 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,
String description)
Constructor. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
This implementation compares the underlying InputStream. |
boolean |
exists()
This implementation always returns true . |
String |
getDescription()
Returns the description. |
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, getFilename, getURL, 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, String description)
representation
- The description.description
- The description.Method Detail |
---|
public boolean exists()
true
.
exists
in interface Resource
exists
in class AbstractResource
public boolean isOpen()
true
.
isOpen
in interface Resource
isOpen
in class AbstractResource
public InputStream getInputStream() throws IOException, IllegalStateException
IOException
IllegalStateException
public String getDescription()
getDescription
in interface Resource
getDescription
in class AbstractResource
public boolean equals(Object obj)
equals
in class AbstractResource
public int hashCode()
hashCode
in class AbstractResource
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |