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 java.lang.Object
implements ResourceUploader, SEPasswordListener


Constructor Summary
protected ResourceUploaderURLImpl(java.net.URL _target, java.io.InputStream _data, java.lang.String _user_name, java.lang.String _password)
           
 
Method Summary
 void clearPasswords()
           
 java.net.PasswordAuthentication getAuthentication(java.lang.String realm, java.net.URL tracker)
           
 java.lang.Object getProperty(java.lang.String name)
           
protected  void getRequestProperties(java.net.HttpURLConnection con)
           
 void setAuthenticationOutcome(java.lang.String realm, java.net.URL tracker, boolean success)
           
 void setProperty(java.lang.String name, java.lang.Object value)
           
protected  void setRequestProperties(java.net.HttpURLConnection con, boolean use_compression)
           
 java.io.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(java.net.URL _target,
                                  java.io.InputStream _data,
                                  java.lang.String _user_name,
                                  java.lang.String _password)
Method Detail

setProperty

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

getProperty

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

upload

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

setRequestProperties

protected void setRequestProperties(java.net.HttpURLConnection con,
                                    boolean use_compression)

getRequestProperties

protected void getRequestProperties(java.net.HttpURLConnection con)

getAuthentication

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

setAuthenticationOutcome

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

clearPasswords

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