|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.net.URLConnection
org.apache.avalon.repository.AbstractURLConnection
Abstract artifact URL protocol handler.
Field Summary |
Fields inherited from class java.net.URLConnection |
allowUserInteraction, connected, doInput, doOutput, ifModifiedSince, url, useCaches |
Method Summary | |
void |
connect()
Null implementation of the conect protocol. |
Object |
getContent(Class[] classes)
Return the Artifact specified by this URL. |
protected Object |
getContent(String type)
Return the Artifact specified by this URL. |
protected String |
getQueryField(URL url,
String field,
String fallback)
Utility method to return the value of a field within the url query. |
protected String |
getVersion(URL url)
Utility method to return the version field with the url query. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
public Object getContent(Class[] classes) throws IOException
classes
- a set of classes (ignored)
IOException
Artifact
public void connect()
protected Object getContent(String type) throws IOException
type
- the artifact type (e.g. "jar", "block", "xml", etc.)
IOException
Artifact
protected String getVersion(URL url)
url
- the url containing the query
protected String getQueryField(URL url, String field, String fallback)
url
- the url containing the queryfield
- the query field namefallback
- the default value if not query parameter available
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |