be.re.repo
Class LocalConnection

java.lang.Object
  extended by java.net.URLConnection
      extended by 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é

Constructor Summary
LocalConnection(URL url)
           
 
Method Summary
 void addRequestProperty(String key, String value)
           
 boolean canRead()
           
 void connect()
           
 String getContentEncoding()
           
 int getContentLength()
           
 String getContentType()
           
 long getDate()
           
 InputStream getInputStream()
           
 long getLastModified()
           
 OutputStream getOutputStream()
           
 boolean getUseCaches()
           
 
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
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LocalConnection

public LocalConnection(URL url)
Method Detail

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