Class ResourceUploaderURLImpl
- java.lang.Object
-
- com.biglybt.pifimpl.local.utils.resourceuploader.ResourceUploaderURLImpl
-
- All Implemented Interfaces:
SEPasswordListener
,ResourceUploader
public class ResourceUploaderURLImpl extends java.lang.Object implements ResourceUploader, SEPasswordListener
-
-
Field Summary
Fields Modifier and Type Field Description private java.io.InputStream
data
private java.lang.String
password
private java.util.Map
properties
private java.net.URL
target
private java.lang.String
user_name
-
Constructor Summary
Constructors Modifier Constructor Description protected
ResourceUploaderURLImpl(java.net.URL _target, java.io.InputStream _data, java.lang.String _user_name, java.lang.String _password)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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()
-
-
-
Method Detail
-
setProperty
public void setProperty(java.lang.String name, java.lang.Object value) throws ResourceDownloaderException
- Specified by:
setProperty
in interfaceResourceUploader
- Throws:
ResourceDownloaderException
-
getProperty
public java.lang.Object getProperty(java.lang.String name) throws ResourceDownloaderException
- Specified by:
getProperty
in interfaceResourceUploader
- Throws:
ResourceDownloaderException
-
upload
public java.io.InputStream upload() throws ResourceUploaderException
- Specified by:
upload
in interfaceResourceUploader
- 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 interfaceSEPasswordListener
-
setAuthenticationOutcome
public void setAuthenticationOutcome(java.lang.String realm, java.net.URL tracker, boolean success)
- Specified by:
setAuthenticationOutcome
in interfaceSEPasswordListener
-
clearPasswords
public void clearPasswords()
- Specified by:
clearPasswords
in interfaceSEPasswordListener
-
-