|
Oracle® Information Rights Management Server Java API Reference 11g Release 1 (11.1.1) E12907-01 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
oracle.irm.engine.content.source.URLSourceFactory
public final class URLSourceFactory
URL Source factory. This class provides methods for creating new instances of URLSource objects.
| Method Summary | |
|---|---|
static URLSource |
createURLSource(URL url)Create a URL source from a URI. |
static URLSource |
createURLSource(URLConnection connection)Create a URL source from a URI connection. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static URLSource createURLSource(URL url)
throws IOException,
UnsupportedContentTypeException,
UnknownContentTypeException
url - the URL to the content. The URL should reference unsealed data.IOException - if there is an input/output error opening a stream to the URL.UnsupportedContentTypeException - unsupported content type specified by the content-type header.UnknownContentTypeException - the content type could not be determined as there was no content-type header returned in the response.
public static URLSource createURLSource(URLConnection connection)
throws IOException,
UnsupportedContentTypeException,
UnknownContentTypeException
connection - the URL connection to the content.IOException - if there is an input/output error opening a stream to the URL.UnsupportedContentTypeException - unsupported content type specified by the content-type header.UnknownContentTypeException - the content type could not be determined as there was no content-type header returned in the response.
|
Oracle® Information Rights Management Server Java API Reference 11g Release 1 (11.1.1) E12907-01 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||