Package org.opennms.core.utils.url
Class GenericURLConnection
- java.lang.Object
-
- java.net.URLConnection
-
- org.opennms.core.utils.url.GenericURLConnection
-
- Direct Known Subclasses:
VmwareRequisitionUrlConnection
public abstract class GenericURLConnection extends URLConnection
Convenience classes to provide additional functions on URL connections.- Author:
- Christian Pape, Ronny Trommer
-
-
Field Summary
-
Fields inherited from class java.net.URLConnection
allowUserInteraction, connected, doInput, doOutput, ifModifiedSince, url, useCaches
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
GenericURLConnection(URL url)
Default constructor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
getPassword()
Get password from a given urlprotected Map<String,String>
getQueryArgs()
Get all URL query argumentsstatic Map<String,String>
getQueryStringParameters(String queryString)
protected String
getUsername()
Get user name from a given URL-
Methods inherited from class java.net.URLConnection
addRequestProperty, connect, getAllowUserInteraction, getConnectTimeout, getContent, getContent, getContentEncoding, getContentLength, getContentLengthLong, getContentType, getDate, getDefaultAllowUserInteraction, getDefaultRequestProperty, getDefaultUseCaches, getDefaultUseCaches, getDoInput, getDoOutput, getExpiration, getFileNameMap, getHeaderField, getHeaderField, getHeaderFieldDate, getHeaderFieldInt, getHeaderFieldKey, getHeaderFieldLong, getHeaderFields, getIfModifiedSince, getInputStream, getLastModified, getOutputStream, getPermission, getReadTimeout, getRequestProperties, getRequestProperty, getURL, getUseCaches, guessContentTypeFromName, guessContentTypeFromStream, setAllowUserInteraction, setConnectTimeout, setContentHandlerFactory, setDefaultAllowUserInteraction, setDefaultRequestProperty, setDefaultUseCaches, setDefaultUseCaches, setDoInput, setDoOutput, setFileNameMap, setIfModifiedSince, setReadTimeout, setRequestProperty, setUseCaches, toString
-
-
-
-
Constructor Detail
-
GenericURLConnection
protected GenericURLConnection(URL url)
Default constructor- Parameters:
url
- a {java.net.URL} object
-
-