org.globus.net
Class GSIURLConnection

java.lang.Object
  extended by java.net.URLConnection
      extended by org.globus.net.GSIURLConnection
Direct Known Subclasses:
GSIHttpURLConnection

public abstract class GSIURLConnection
extends URLConnection


Field Summary
protected  Authorization authorization
           
protected  GSSCredential credentials
           
protected  int delegationType
           
static String GSS_MODE_PROPERTY
           
protected  Integer gssMode
           
 
Fields inherited from class java.net.URLConnection
allowUserInteraction, connected, doInput, doOutput, ifModifiedSince, url, useCaches
 
Constructor Summary
protected GSIURLConnection(URL url)
          Subclasses must overwrite.
 
Method Summary
abstract  void disconnect()
           
 Authorization getAuthorization()
           
 GSSCredential getCredentials()
           
 int getDelegationType()
           
protected  GSSName getExpectedName()
           
 Integer getGSSMode()
           
 void setAuthorization(Authorization auth)
           
 void setCredentials(GSSCredential credentials)
           
 void setDelegationType(int delegationType)
           
 void setGSSMode(Integer mode)
           
 void setRequestProperty(String key, String value)
           
 
Methods inherited from class java.net.URLConnection
addRequestProperty, connect, getAllowUserInteraction, getConnectTimeout, getContent, getContent, getContentEncoding, getContentLength, getContentType, getDate, getDefaultAllowUserInteraction, getDefaultRequestProperty, getDefaultUseCaches, getDoInput, getDoOutput, getExpiration, getFileNameMap, getHeaderField, getHeaderField, getHeaderFieldDate, getHeaderFieldInt, getHeaderFieldKey, getHeaderFields, getIfModifiedSince, getInputStream, getLastModified, 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, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

GSS_MODE_PROPERTY

public static final String GSS_MODE_PROPERTY
See Also:
Constant Field Values

credentials

protected GSSCredential credentials

authorization

protected Authorization authorization

delegationType

protected int delegationType

gssMode

protected Integer gssMode
Constructor Detail

GSIURLConnection

protected GSIURLConnection(URL url)
Subclasses must overwrite.

Method Detail

disconnect

public abstract void disconnect()

setGSSMode

public void setGSSMode(Integer mode)

getGSSMode

public Integer getGSSMode()

setCredentials

public void setCredentials(GSSCredential credentials)

getCredentials

public GSSCredential getCredentials()

setAuthorization

public void setAuthorization(Authorization auth)

getAuthorization

public Authorization getAuthorization()

setDelegationType

public void setDelegationType(int delegationType)

getDelegationType

public int getDelegationType()

getExpectedName

protected GSSName getExpectedName()
                           throws GSSException
Throws:
GSSException

setRequestProperty

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