|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.vodafone360.people.engine.content.ContentObject
public class ContentObject
ContentObject is the class for transferring contents It contains the URL for downloads or a link for uploads, the protocol, the transfer direction and status. After it is created it will be processed by the ContentEngine which will, after the transfer is done, pass it over to the Handler implementing the TranferListener.
Nested Class Summary | |
---|---|
static class |
ContentObject.Protocol
Protocol used for the Transfer. |
static class |
ContentObject.TransferDirection
TransferDirection determines if the ContentObject is to be uploaded or downloaded. |
static class |
ContentObject.TransferStatus
The TransferStatus of the ContentObject. |
Field Summary | |
---|---|
private ExternalResponseObject |
mExtResponse
Answer from the Server. |
private java.lang.String |
mId
id can be used for some unique ids. |
private java.lang.Object |
mLink
Link to an Object. |
private java.io.File |
mPath
File to upload or path for saving downloaded content Depends on TransferDirection. |
private ContentObject.Protocol |
mProtocol
Member containing the protocol to be used. |
private ContentObject.TransferStatus |
mStatus
Actual status of the ContentObject. |
private ContentObject.TransferDirection |
mTransferDirection
Member holding the TransferDirection. |
private TransferListener |
mTransferListener
TransferLister to be called after transfer for further processing. |
private java.net.URL |
mUrl
Url for the download. |
private java.lang.String |
mUrlParams
additional params for the transfer. |
Constructor Summary | |
---|---|
ContentObject(java.lang.String id,
java.lang.Object link,
TransferListener transferListener,
ContentObject.TransferDirection transferDirection,
ContentObject.Protocol protocol)
Constructor for the ContentObject. |
Method Summary | |
---|---|
ContentObject.TransferDirection |
getDirection()
Getter for the TransferDirection. |
ExternalResponseObject |
getExternalResponseObject()
Getter for the ExternalResponseObject. |
java.lang.String |
getId()
Getter for the id. |
java.lang.Object |
getLink()
Getter for the Link. |
java.io.File |
getPath()
Getter for the path. |
ContentObject.Protocol |
getProtocol()
Getter for the Protocol. |
ContentObject.TransferStatus |
getStatus()
Getter for the TransferStatus. |
TransferListener |
getTransferListener()
Getter for the TransferListener. |
java.net.URL |
getUrl()
Getter for the URL. |
java.lang.String |
getUrlParams()
Getter for the UrlParams. |
void |
setExtResponse(ExternalResponseObject extResponse)
Setter for the ExternalResponse. |
void |
setPath(java.io.File path)
Setter for the path. |
void |
setTransferStatus(ContentObject.TransferStatus status)
Setter for the TransferStatus. |
void |
setUrl(java.net.URL url)
Setter for the URL. |
void |
setUrlParams(java.lang.String urlParams)
Setter for the UrlParamas |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.lang.String mId
private java.net.URL mUrl
private java.lang.String mUrlParams
private java.io.File mPath
private ContentObject.TransferStatus mStatus
private TransferListener mTransferListener
private ContentObject.TransferDirection mTransferDirection
private java.lang.Object mLink
private ContentObject.Protocol mProtocol
private ExternalResponseObject mExtResponse
Constructor Detail |
---|
ContentObject(java.lang.String id, java.lang.Object link, TransferListener transferListener, ContentObject.TransferDirection transferDirection, ContentObject.Protocol protocol)
id
- The unique id, if neededlink
- Link to a objecttransferListener
- TranferListener for this HandlertransferDirection
- Upload or downloadprotocol
- Protocol to be used for transferMethod Detail |
---|
public final java.lang.String getUrlParams()
public final void setUrlParams(java.lang.String urlParams)
urlParams
- the urlParams to set.public final void setExtResponse(ExternalResponseObject extResponse)
extResponse
- to be setpublic final ExternalResponseObject getExternalResponseObject()
public final ContentObject.Protocol getProtocol()
public final java.lang.String getId()
public final java.net.URL getUrl()
public final void setUrl(java.net.URL url)
url
- URL for the transferpublic final java.io.File getPath()
public final void setPath(java.io.File path)
path
- Instance of File. Points to a place where the downloaded file
should be stored or the to be uploaded file can be foundpublic final ContentObject.TransferStatus getStatus()
public final void setTransferStatus(ContentObject.TransferStatus status)
status
- The TransferStatus to set for this objectpublic final TransferListener getTransferListener()
public final java.lang.Object getLink()
public final ContentObject.TransferDirection getDirection()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
JavaDoc