|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ResourceHandler
Specifies the behavior of classes used to resolve resources.
| Method Summary | |
|---|---|
boolean |
accepts(java.lang.String uri)
Returns true if this handler "recognizes" resources with the
given URI. |
boolean |
accepts(java.net.URI uri)
|
java.io.InputStream |
getResource(java.lang.String uri)
Returns the stream corresponding to the given URI. |
Resource |
getResourceObject(java.lang.String uri)
Returns the resource object corresponding to the given URI. |
| Method Detail |
|---|
java.io.InputStream getResource(java.lang.String uri)
throws java.io.IOException,
ResourceNotFoundException
uri - a URI.
InputStream.
ResourceNotFoundException - if a resource corresponding to the
URI could does not exist.
java.io.IOException - if a problem occurs.
Resource getResourceObject(java.lang.String uri)
throws java.io.IOException
uri - a URI.
Resource.
java.io.IOException - if a problem occurs.boolean accepts(java.lang.String uri)
true if this handler "recognizes" resources with the
given URI. This methods is used to hold resource handlers in a chain of
responsability.
uri - a URI.
true if this handler can handle resources with the
given URI.boolean accepts(java.net.URI uri)
uri - a URI.
true if this handler can handle resources with the
given URI.accepts(String)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||