hep.io.root.daemon.xrootd
Class XrootdURLConnection

java.lang.Object
  extended by java.net.URLConnection
      extended by hep.io.root.daemon.xrootd.XrootdURLConnection

public class XrootdURLConnection
extends URLConnection

The core class for dealing with root: protocol connections. Currently only supports reading files. Currently only supports plain text (insecure) authorization.

Author:
Tony Johnson

Field Summary
static String XROOT_AUTHORIZATION_PASSWORD
           
static String XROOT_AUTHORIZATION_SCHEME
           
static String XROOT_AUTHORIZATION_SCHEME_ANONYMOUS
           
static String XROOT_AUTHORIZATION_USER
           
static String XROOT_BUFFER_SIZE
           
 
Fields inherited from class java.net.URLConnection
allowUserInteraction, connected, doInput, doOutput, ifModifiedSince, url, useCaches
 
Method Summary
 void connect()
           
 void disconnect()
           
protected  void finalize()
           
 long getCheckSum()
           
 int getContentLength()
           
 long getDate()
           
 InputStream getInputStream()
           
 long getLastModified()
           
 long getLongContentLength()
           
 void setRequestProperty(String key, String value)
           
 
Methods inherited from class java.net.URLConnection
addRequestProperty, getAllowUserInteraction, getConnectTimeout, getContent, getContent, getContentEncoding, getContentType, getDefaultAllowUserInteraction, getDefaultRequestProperty, getDefaultUseCaches, getDoInput, getDoOutput, getExpiration, getFileNameMap, getHeaderField, getHeaderField, getHeaderFieldDate, getHeaderFieldInt, getHeaderFieldKey, getHeaderFields, getIfModifiedSince, getOutputStream, getPermission, getReadTimeout, getRequestProperties, getRequestProperty, getURL, getUseCaches, guessContentTypeFromName, guessContentTypeFromStream, setAllowUserInteraction, setConnectTimeout, setContentHandlerFactory, setDefaultAllowUserInteraction, setDefaultRequestProperty, setDefaultUseCaches, setDoInput, setDoOutput, setFileNameMap, setIfModifiedSince, setReadTimeout, setUseCaches, toString
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

XROOT_AUTHORIZATION_SCHEME

public static final String XROOT_AUTHORIZATION_SCHEME
See Also:
Constant Field Values

XROOT_AUTHORIZATION_SCHEME_ANONYMOUS

public static final String XROOT_AUTHORIZATION_SCHEME_ANONYMOUS
See Also:
Constant Field Values

XROOT_AUTHORIZATION_USER

public static final String XROOT_AUTHORIZATION_USER
See Also:
Constant Field Values

XROOT_AUTHORIZATION_PASSWORD

public static final String XROOT_AUTHORIZATION_PASSWORD
See Also:
Constant Field Values

XROOT_BUFFER_SIZE

public static final String XROOT_BUFFER_SIZE
See Also:
Constant Field Values
Method Detail

getInputStream

public InputStream getInputStream()
                           throws IOException
Overrides:
getInputStream in class URLConnection
Throws:
IOException

connect

public void connect()
             throws IOException
Specified by:
connect in class URLConnection
Throws:
IOException

disconnect

public void disconnect()
                throws IOException
Throws:
IOException

getContentLength

public int getContentLength()
Overrides:
getContentLength in class URLConnection

getLongContentLength

public long getLongContentLength()

getLastModified

public long getLastModified()
Overrides:
getLastModified in class URLConnection

getDate

public long getDate()
Overrides:
getDate in class URLConnection

getCheckSum

public long getCheckSum()
                 throws IOException
Throws:
IOException

setRequestProperty

public void setRequestProperty(String key,
                               String value)
Overrides:
setRequestProperty in class URLConnection

finalize

protected void finalize()
                 throws Throwable
Overrides:
finalize in class Object
Throws:
Throwable


Copyright © 2000-2013 FreeHEP. All Rights Reserved.