uk.ac.rdg.resc.jstyx.client.protocol.styx
Class StyxURLConnection

java.lang.Object
  extended by java.net.URLConnection
      extended by uk.ac.rdg.resc.jstyx.client.protocol.styx.StyxURLConnection

public class StyxURLConnection
extends java.net.URLConnection

Represents a connection to a Styx server that's been created with a URL

Author:
Jon Blower $Revision: 602 $ $Date: 2006-03-21 09:06:15 +0000 (Tue, 21 Mar 2006) $ $Log$ Revision 1.6 2006/03/21 09:06:15 jonblower Still implementing authentication Revision 1.5 2005/09/01 17:12:11 jonblower Changes to Input and Output stream code Revision 1.4 2005/08/31 17:03:18 jonblower Renamed "StyxFile*putStream*" to "CStyxFile*putStream*" for consistency with CStyxFile class Revision 1.3 2005/05/23 16:48:23 jonblower Overhauled CStyxFile (esp. asynchronous methods) and StyxConnection (added cache of CStyxFiles) Revision 1.2 2005/02/24 07:47:06 jonblower Added connect() in response to change to StyxConnection Revision 1.1.1.1 2005/02/16 18:58:25 jonblower Initial import

Field Summary
 
Fields inherited from class java.net.URLConnection
allowUserInteraction, connected, doInput, doOutput, ifModifiedSince, url, useCaches
 
Constructor Summary
StyxURLConnection(java.net.URL url)
          Creates a new instance of StyxURLConnection
 
Method Summary
 void connect()
           
 java.io.InputStream getInputStream()
           
 java.io.OutputStream getOutputStream()
           
 void setRequestHeader(java.lang.String name, java.lang.String value)
          This is empty because we don't need to set any header information to find a resource on a Styx server
 
Methods inherited from class java.net.URLConnection
addRequestProperty, getAllowUserInteraction, getConnectTimeout, getContent, getContent, getContentEncoding, getContentLength, getContentType, getDate, getDefaultAllowUserInteraction, getDefaultRequestProperty, getDefaultUseCaches, getDoInput, getDoOutput, getExpiration, getFileNameMap, getHeaderField, getHeaderField, getHeaderFieldDate, getHeaderFieldInt, getHeaderFieldKey, getHeaderFields, getIfModifiedSince, getLastModified, getPermission, getReadTimeout, getRequestProperties, getRequestProperty, getURL, getUseCaches, guessContentTypeFromName, guessContentTypeFromStream, setAllowUserInteraction, setConnectTimeout, setContentHandlerFactory, setDefaultAllowUserInteraction, setDefaultRequestProperty, setDefaultUseCaches, setDoInput, setDoOutput, setFileNameMap, setIfModifiedSince, setReadTimeout, setRequestProperty, setUseCaches, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StyxURLConnection

public StyxURLConnection(java.net.URL url)
Creates a new instance of StyxURLConnection

Method Detail

connect

public void connect()
             throws java.io.IOException
Specified by:
connect in class java.net.URLConnection
Throws:
java.io.IOException

setRequestHeader

public void setRequestHeader(java.lang.String name,
                             java.lang.String value)
This is empty because we don't need to set any header information to find a resource on a Styx server


getInputStream

public java.io.InputStream getInputStream()
                                   throws java.io.IOException
Overrides:
getInputStream in class java.net.URLConnection
Throws:
java.io.IOException

getOutputStream

public java.io.OutputStream getOutputStream()
                                     throws java.io.IOException
Overrides:
getOutputStream in class java.net.URLConnection
Throws:
java.io.IOException


Copyright © 2004-2006 Reading e-Science Centre. All Rights Reserved.