be.re.repo
Class LocalConnection
java.lang.Object
java.net.URLConnection
be.re.repo.LocalConnection
public class LocalConnection
- extends URLConnection
The connection for the "local" protocol. This protocol can be used in
modules to access resources in the repository. Such an access will go
through all the validation and security layers, as if the module were a
WebDAV-client.
- Author:
- Werner Donné
| Methods inherited from class java.net.URLConnection |
getAllowUserInteraction, getConnectTimeout, getContent, getContent, getDefaultAllowUserInteraction, getDefaultRequestProperty, getDefaultUseCaches, getDoInput, getDoOutput, getExpiration, getFileNameMap, getHeaderField, getHeaderField, getHeaderFieldDate, getHeaderFieldInt, getHeaderFieldKey, getHeaderFields, getIfModifiedSince, getPermission, getReadTimeout, getRequestProperties, getRequestProperty, getURL, guessContentTypeFromName, guessContentTypeFromStream, setAllowUserInteraction, setConnectTimeout, setContentHandlerFactory, setDefaultAllowUserInteraction, setDefaultRequestProperty, setDefaultUseCaches, setDoInput, setDoOutput, setFileNameMap, setIfModifiedSince, setReadTimeout, setRequestProperty, setUseCaches, toString |
LocalConnection
public LocalConnection(URL url)
addRequestProperty
public void addRequestProperty(String key,
String value)
- Overrides:
addRequestProperty in class URLConnection
canRead
public boolean canRead()
throws IOException
- Throws:
IOException
connect
public void connect()
throws IOException
- Specified by:
connect in class URLConnection
- Throws:
IOException
getContentEncoding
public String getContentEncoding()
- Overrides:
getContentEncoding in class URLConnection
getContentLength
public int getContentLength()
- Overrides:
getContentLength in class URLConnection
getContentType
public String getContentType()
- Overrides:
getContentType in class URLConnection
getDate
public long getDate()
- Overrides:
getDate in class URLConnection
getInputStream
public InputStream getInputStream()
throws IOException
- Overrides:
getInputStream in class URLConnection
- Throws:
IOException
getLastModified
public long getLastModified()
- Overrides:
getLastModified in class URLConnection
getOutputStream
public OutputStream getOutputStream()
throws IOException
- Overrides:
getOutputStream in class URLConnection
- Throws:
IOException
getUseCaches
public boolean getUseCaches()
- Overrides:
getUseCaches in class URLConnection