|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--uk.org.ogsadai.client.toolkit.activity.delivery.DataTransportMode
An enumerated type denoting available modes for data push and pull to and from a data service.
Field Summary | |
static DataTransportMode |
BLOCK Transfer data block by block. |
private static java.lang.String |
BLOCK_STRING The string used to represent BLOCK mode. |
private static java.lang.String |
COPYRIGHT_NOTICE Copyright statement |
static DataTransportMode |
FULL Transfer data in full within a single block. |
private static java.lang.String |
FULL_STRING The string used to represent FULL mode. |
private java.lang.String |
mMode The current mode. |
Constructor Summary | |
private |
DataTransportMode(java.lang.String mode) Create a DataTransportMode of the specified type. |
Method Summary | |
java.lang.String |
getAsString() Return the transfer mode as a string - either block or full . |
boolean |
isBlock() Is the current transfer mode a block by block transfer? |
boolean |
isFull() Is the current transfer mode a full transfer? |
void |
setBlock() Set the transfer mode to be a block by block transfer |
void |
setFull() Set the transfer mode to be a full transfer |
void |
setMode(java.lang.String mode) Set the transfer mode. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final java.lang.String COPYRIGHT_NOTICE
private static final java.lang.String BLOCK_STRING
private static final java.lang.String FULL_STRING
public static final DataTransportMode BLOCK
public static final DataTransportMode FULL
private java.lang.String mMode
Constructor Detail |
private DataTransportMode(java.lang.String mode)
DataTransportMode
of the specified type.
mode
- Either DataTransportMode.BLOCK_STRING
for a block by block transfer or DataTransport.FULL_STRING
for a full transfer.java.lang.IllegalArgumentException
- If mode
is neither of the above.Method Detail |
public void setMode(java.lang.String mode)
mode
- Either DataTransportMode.BLOCK_STRING
for a block by block transfer or DataTransport.FULL_STRING
for a full transfer.java.lang.IllegalArgumentException
- If mode
is neither of the above.public void setFull()
public void setBlock()
public boolean isBlock()
true
if mode
is BLOCK_STRING
.public boolean isFull()
true
if mode
is FULL_STRING
.public java.lang.String getAsString()
block
or full
.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |