|
Oracle Fusion Middleware Java API Reference for Oracle ADF Model 11g Release 1 (11.1.1.5.0) E10653-06 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.adfinternal.model.adapter.url.SmartURL
public class SmartURL
Handles URL connections.
Different adapters and data controls will use this class to access a URL. This class can handle the HTTP and HTTPS protocols. It uses the proxy set by the application that runs it.
Constructor Summary | |
---|---|
SmartURL(java.lang.String loc) Creates the URL object for a location. |
|
SmartURL(java.lang.String loc, java.lang.String servletCtxPath) Creates the URL object for a location. |
Method Summary | |
---|---|
java.net.URL |
createURL() Createa an URL object. |
java.io.InputStream |
openStream() Open an InputStream for a location. |
void |
setTimeout(int timeout) Sets the timeout for the connection. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SmartURL(java.lang.String loc)
loc
- Source location for the URL.public SmartURL(java.lang.String loc, java.lang.String servletCtxPath)
loc
- Source location for the URL.servletCtxPath
- Context path for the servlet.Method Detail |
---|
public void setTimeout(int timeout)
timeout
- Timeout amount in miliseconds.public java.io.InputStream openStream() throws AdapterException
InputStream
for a location. If the location points to a http or https file, this method tries to connect to the file. The location can be a file name as well. This method tries to create a URL from the location. If fails it will treat the location as a file name and tries to create a URL for the file. If the file path is not an absolute path defined, It tries to resolve the name as relative to the provider home. If fails it then tries to create a URL from the file path as known to the system.AdapterException
- If the connection failed or no URL can be formed from the location.public java.net.URL createURL() throws AdapterException
AdapterException
- If the connection failed or no URL can be formed from the location.
|
Oracle Fusion Middleware Java API Reference for Oracle ADF Model 11g Release 1 (11.1.1.5.0) E10653-06 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |