Package edu.ucsb.nceas.protocols.metacat
Class MetacatURLConnection
java.lang.Object
java.net.URLConnection
edu.ucsb.nceas.protocols.metacat.MetacatURLConnection
Handle requests for metacat scheme URLs
-
Field Summary
Fields inherited from class java.net.URLConnection
allowUserInteraction, connected, doInput, doOutput, ifModifiedSince, url, useCaches
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
connect()
Make a connection to the URLvoid
setRequestHeader
(String name, String value) Set the request header for the URLMethods inherited from class java.net.URLConnection
addRequestProperty, 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 Details
-
MetacatURLConnection
Construct a new metacat scheme URL connection- Parameters:
u
- the URL to which to connect
-
-
Method Details
-
setRequestHeader
Set the request header for the URL -
connect
Make a connection to the URL- Specified by:
connect
in classURLConnection
- Throws:
IOException
-