grinda.client.stp
Class STPConnection

java.lang.Object
  extended by java.net.URLConnection
      extended by grinda.client.stp.STPConnection

public class STPConnection
extends java.net.URLConnection

Implements a STP connection. This protocol can be used to retrieve part of file like the GridFTP but with less configuration efforts (e.g. no need of a database...). URL of this protocol are in the following form: stp://hostname:port/path_to_file/file?start=file_offset&length=byte_amount The start and length field can be in any order and can be not present. The port used is 7333.

Version:
1.0
Author:
Sirio Capizzi

Field Summary
 
Fields inherited from class java.net.URLConnection
allowUserInteraction, connected, doInput, doOutput, ifModifiedSince, url, useCaches
 
Constructor Summary
protected STPConnection(java.net.URL uRL)
           
 
Method Summary
 void connect()
          connect
 java.io.InputStream getInputStream()
           
 
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, getOutputStream, 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

STPConnection

protected STPConnection(java.net.URL uRL)
Method Detail

connect

public void connect()
             throws java.io.IOException
connect

Specified by:
connect in class java.net.URLConnection
Throws:
java.io.IOException
To do:
Implement this java.net.URLConnection method

getInputStream

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


Copyright © 2006 Sirio Capizzi. All Rights Reserved.