|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjfileupload.transfer.client.core.AbstractTransferController
jfileupload.transfer.client.http.HTTPTransfer
public abstract class HTTPTransfer
This class implements a TransferController for HTTP protocol. It relies on Commons-HTTPClient 3.x.
Field Summary | |
---|---|
static java.lang.String |
COOKIENAME
|
static java.lang.String |
COOKIEOVERWRITE
|
static java.lang.String |
COOKIEPATH
|
static java.lang.String |
COOKIEVALUE
|
static java.lang.String |
DEPRECATEDURL
|
static java.lang.String |
ERRORHEADER
|
static java.lang.String |
HTTPAUTHMETHOD
|
static java.lang.String |
HTTPNTLMDOMAIN
|
static java.lang.String |
HTTPNTLMHOST
|
static java.lang.String |
HTTPPROXYHOST
|
static java.lang.String |
HTTPPROXYNTLMDOMAIN
|
static java.lang.String |
HTTPPROXYNTLMHOST
|
static java.lang.String |
HTTPPROXYPASSWORD
|
static java.lang.String |
HTTPPROXYPORT
|
static java.lang.String |
HTTPPROXYUSERNAME
|
static java.lang.String |
MIMETYPES
|
static java.lang.String |
WEAKSSL
|
Fields inherited from class jfileupload.transfer.client.core.AbstractTransferController |
---|
BUFFERSIZE, GZIPEXTENSION, ZIPEXTENSION |
Fields inherited from interface jfileupload.transfer.client.core.TransferController |
---|
COMPLETED_STATUS, MAX_AUTH_ATTEMPTS, PREPROCESSING_FILTER, RUNNING_STATUS, WAITING_STATUS |
Constructor Summary | |
---|---|
HTTPTransfer()
HTTP implementation. |
Method Summary | |
---|---|
void |
authenticate()
Send an HTTP request to "url" parameter and prompt for authentication if needed. |
protected void |
autoDetectProxy(java.net.URL url)
Try to auto-detect proxy settings. |
abstract void |
begin()
Fix issue for HTTP port with "_" in hostname. |
abstract void |
cancel()
Cancel transfer. |
abstract java.lang.Object |
execute()
Start synchroneous transfer. |
org.apache.commons.httpclient.HttpClient |
getClient()
Return HttpClient instance. |
CustomFileNameMap |
getCustomFilenameMap()
Return custom mime types. |
java.util.HashMap |
getCustomParameters()
Return HTTP custom parameters. |
java.lang.String |
getHostname()
Return hostname. |
java.util.Map |
headInfo(java.lang.String url,
java.util.Map headers)
Process a HEAD request with incoming headers and returns response headers. |
void |
init()
Inits HTTP transfer (Proxy, SSL Factory, Cookies, Concurrency ...) |
protected void |
parseAuthenticateHeader(org.apache.commons.httpclient.Header header,
AuthenticationModel model)
Parse WWW-Authentication or Proxy-Authentication headers. |
void |
registerSSLSocketFactory()
Register a custom SSL socket factory. |
protected void |
setProxyAuthentication()
Set Proxy-Authentication |
protected void |
setWWWAuthentication()
Set Basic WWW-Authentication. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static java.lang.String COOKIENAME
public static java.lang.String COOKIEPATH
public static java.lang.String COOKIEVALUE
public static java.lang.String COOKIEOVERWRITE
public static java.lang.String MIMETYPES
public static java.lang.String ERRORHEADER
public static java.lang.String HTTPPROXYHOST
public static java.lang.String HTTPPROXYPORT
public static java.lang.String HTTPPROXYUSERNAME
public static java.lang.String HTTPPROXYPASSWORD
public static java.lang.String HTTPPROXYNTLMHOST
public static java.lang.String HTTPPROXYNTLMDOMAIN
public static java.lang.String HTTPNTLMHOST
public static java.lang.String HTTPNTLMDOMAIN
public static java.lang.String HTTPAUTHMETHOD
public static java.lang.String WEAKSSL
public static java.lang.String DEPRECATEDURL
Constructor Detail |
---|
public HTTPTransfer()
Method Detail |
---|
public void init() throws ClientException
init
in interface TransferController
init
in class AbstractTransferController
ClientException
public void registerSSLSocketFactory()
protected void autoDetectProxy(java.net.URL url)
url
- public java.lang.String getHostname()
public java.util.Map headInfo(java.lang.String url, java.util.Map headers) throws ClientException
url
- headers
-
ClientException
public void authenticate()
protected void parseAuthenticateHeader(org.apache.commons.httpclient.Header header, AuthenticationModel model)
header
- model
- protected void setWWWAuthentication()
protected void setProxyAuthentication()
public java.util.HashMap getCustomParameters()
public CustomFileNameMap getCustomFilenameMap()
public org.apache.commons.httpclient.HttpClient getClient()
public abstract void begin()
begin
in interface TransferController
begin
in class AbstractTransferController
public abstract void cancel()
TransferController
cancel
in interface TransferController
cancel
in class AbstractTransferController
public abstract java.lang.Object execute() throws ClientException
TransferController
execute
in interface TransferController
execute
in class AbstractTransferController
ClientException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |