public class TransferContext extends Object
TransferContext acts as a data structure for holding upload and download information required for the
upload and download request and response factories. It also holds the intermediate data and or state between the
request and response phases.| Constructor and Description |
|---|
TransferContext(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse) |
| Modifier and Type | Method and Description |
|---|---|
DownloadRequestProcessor |
getDownloadRequestProcessor()
Returns the
DownloadRequestProcessor instance associated for this download HTTP request method call. |
Map<String,String> |
getHeadersMap()
Get the headers map of the transfer context
|
javax.servlet.http.HttpServletRequest |
getHttpServletRequest()
Returns the
HttpServletRequest associated with the server call. |
javax.servlet.http.HttpServletResponse |
getHttpServletResponse()
Returns the
HttpServletResponse associated with the server call. |
UploadRequestProcessor |
getUploadRequestProcessor()
Returns the
UploadRequestProcessor instance associated this upload HTTP request method call. |
void |
setDownloadRequestProcessor(DownloadRequestProcessor downloadRequestProcessor)
Sets the
DownloadRequestProcessor instance created for this download HTTP request method call. |
void |
setHeadersMap(Map<String,String> headersMap)
Set the headers map for this transfer context
|
void |
setUploadRequestProcessor(UploadRequestProcessor uploadRequestProcessor)
Sets the
UploadRequestProcessor instance created for this upload HTTP request method call. |
public TransferContext(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse)
public javax.servlet.http.HttpServletRequest getHttpServletRequest()
HttpServletRequest associated with the server call.HttpServletRequestpublic javax.servlet.http.HttpServletResponse getHttpServletResponse()
HttpServletResponse associated with the server call.HttpServletResponsepublic UploadRequestProcessor getUploadRequestProcessor()
UploadRequestProcessor instance associated this upload HTTP request method call.UploadRequestProcessor.public void setUploadRequestProcessor(UploadRequestProcessor uploadRequestProcessor)
UploadRequestProcessor instance created for this upload HTTP request method call.uploadRequestProcessor - Instance of UploadRequestProcessorspublic DownloadRequestProcessor getDownloadRequestProcessor()
DownloadRequestProcessor instance associated for this download HTTP request method call.DownloadRequestProcessorpublic void setDownloadRequestProcessor(DownloadRequestProcessor downloadRequestProcessor)
DownloadRequestProcessor instance created for this download HTTP request method call.downloadRequestProcessor - the downloadRequestProcessor to setpublic Map<String,String> getHeadersMap()
Copyright © 2016 PayPal Open Source. All rights reserved.