http: file: jar:
Basic URI access from java.net.URLConnection
Index > Books > Declarative Development Guide > Reference Library > Accessor Listing > http: file: jar:

Rate this page:
Really useful
Satisfactory
Not helpful
Confusing
Incorrect
Unsure
Extra comments:


Module

urn:org:ten60:netkernel:ext:layer1

Definition

Format

http:.* A resource available over the HTTP protocol. Only SOURCE requests can be issued against a http: uri.
file:.* A resource available from the local filesystem. All available request types can be issued at a file: resource, SOURCE, SINK, NEW, EXISTS, DELETE.
jar:.* A resource available inside a jar or zip resource which is accessible either using file or http. For example: jar:file:/archive.jar!/module.xml. Only SOURCE requests can be issued against a jar: uri.

The default timeout period for network requests issued using the java.net.URLConnection is very high. If you wish to change these defaults you will need to set java system properties. For more information see: http://java.sun.com/j2se/1.4.2/docs/guide/net/properties.html. Matters are made worse by the fact that a request blocked in a http request cannot even be interrupted.

© 2003-2005, 1060 Research Limited. 1060 registered trademark, NetKernel trademark of 1060 Research Limited.