org.gudy.azureus2.pluginsimpl.local.utils.resourceuploader
Class ResourceUploaderURLImpl

java.lang.Object
  extended by org.gudy.azureus2.pluginsimpl.local.utils.resourceuploader.ResourceUploaderURLImpl
All Implemented Interfaces:
SEPasswordListener, ResourceUploader

public class ResourceUploaderURLImpl
extends Object
implements ResourceUploader, SEPasswordListener


Constructor Summary
protected ResourceUploaderURLImpl(URL _target, InputStream _data, String _user_name, String _password)
           
 
Method Summary
 void clearPasswords()
           
 PasswordAuthentication getAuthentication(String realm, URL tracker)
           
 Object getProperty(String name)
           
protected  void getRequestProperties(HttpURLConnection con)
           
 void setAuthenticationOutcome(String realm, URL tracker, boolean success)
           
 void setProperty(String name, Object value)
           
protected  void setRequestProperties(HttpURLConnection con, boolean use_compression)
           
 InputStream upload()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceUploaderURLImpl

protected ResourceUploaderURLImpl(URL _target,
                                  InputStream _data,
                                  String _user_name,
                                  String _password)
Method Detail

setProperty

public void setProperty(String name,
                        Object value)
                 throws ResourceDownloaderException
Specified by:
setProperty in interface ResourceUploader
Throws:
ResourceDownloaderException

getProperty

public Object getProperty(String name)
                   throws ResourceDownloaderException
Specified by:
getProperty in interface ResourceUploader
Throws:
ResourceDownloaderException

upload

public InputStream upload()
                   throws ResourceUploaderException
Specified by:
upload in interface ResourceUploader
Throws:
ResourceUploaderException

setRequestProperties

protected void setRequestProperties(HttpURLConnection con,
                                    boolean use_compression)

getRequestProperties

protected void getRequestProperties(HttpURLConnection con)

getAuthentication

public PasswordAuthentication getAuthentication(String realm,
                                                URL tracker)
Specified by:
getAuthentication in interface SEPasswordListener

setAuthenticationOutcome

public void setAuthenticationOutcome(String realm,
                                     URL tracker,
                                     boolean success)
Specified by:
setAuthenticationOutcome in interface SEPasswordListener

clearPasswords

public void clearPasswords()
Specified by:
clearPasswords in interface SEPasswordListener