public interface GKCard
| Modifier and Type | Interface and Description |
|---|---|
static class |
GKCard.AbortResponse
An AbortResponse represents the deliberate termination of an action.
|
static class |
GKCard.ConnectionState
ConnectionState is the current state of the connection between a
GKCard and
a GateKeeper Card. |
static interface |
GKCard.Monitor
A Monitor is a handler for changes to
ConnectionState. |
static class |
GKCard.Response
A Response captures the communication received from the GateKeeper Card during the
execution of an action.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addMonitor(GKCard.Monitor monitor)
Add a
Monitor to be informed about changes to the state of the GateKeeper Card. |
void |
connect()
Open a connection with the GateKeeper Card.
|
GKCard.Response |
createPath(java.lang.String cardPath)
Send a `createPath` action to the GateKeeper Card.
|
GKCard.Response |
delete(java.lang.String cardPath)
Send a `delete` action to the GateKeeper Card.
|
GKCard.Response |
deletePath(java.lang.String cardPath)
Send a `deletePath` action to the GateKeeper Card.
|
void |
disconnect()
Close the connection with the GateKeeper Card.
|
GKCard.Response |
finalize(java.lang.String cardPath)
Send a `finalize` action to the GateKeeper Card.
|
GKCard.Response |
get(java.lang.String cardPath)
Send a `get` action to the GateKeeper Card.
|
GKCard.Response |
get(java.lang.String cardPath,
java.io.File localFile)
Send a `get` action to the GateKeeper Card.
|
GKCard.ConnectionState |
getConnectionState()
Get the current state of the connection between this object and the GateKeeper Card.
|
GKCard.Response |
list(java.lang.String cardPath)
Send a `list` action to the GateKeeper Card.
|
void |
onConnectionChanged(GKCard.ConnectionState state)
Intended for internal use only.
|
GKCard.Response |
put(java.lang.String cardPath,
java.io.InputStream inputStream)
Send a `put` action to the GateKeeper Card.
|
void |
removeMonitor(GKCard.Monitor monitor)
Remove a
Monitor from the GKCard. |
GKCard.Response |
rename(java.lang.String fromCardPath,
java.lang.String toCardPath)
Send a `rename` action to the GateKeeper Card.
|
GKCard.Response list(java.lang.String cardPath) throws java.io.IOException
cardPath - the path used in the actionResponse with information about the actionjava.io.IOException - when communication with the GateKeeper Card has been disrupted.GKCard.Response get(java.lang.String cardPath) throws java.io.IOException
cardPath - the path used in the actionResponse with information about the actionjava.io.IOException - when communication with the GateKeeper Card has been disrupted.GKCard.Response get(java.lang.String cardPath, java.io.File localFile) throws java.io.IOException
cardPath - the path used in the actionlocalFile - the local file used to store the response dataResponse with information about the actionjava.io.IOException - when communication with the GateKeeper Card has been disrupted.GKCard.Response put(java.lang.String cardPath, java.io.InputStream inputStream) throws java.io.IOException
cardPath - the path used in the actioninputStream - a stream with data used in the actionResponse with information about the actionjava.io.IOException - when communication with the GateKeeper Card has been disrupted.GKCard.Response rename(java.lang.String fromCardPath, java.lang.String toCardPath) throws java.io.IOException
fromCardPath - the name to change fromtoCardPath - the name to change toResponse with information about the actionjava.io.IOException - when communication with the GateKeeper Card has been disrupted.GKCard.Response delete(java.lang.String cardPath) throws java.io.IOException
cardPath - the path used in the actionResponse with information about the actionjava.io.IOException - when communication with the GateKeeper Card has been disrupted.GKCard.Response createPath(java.lang.String cardPath) throws java.io.IOException
cardPath - the path used in the actionResponse with information about the actionjava.io.IOException - when communication with the GateKeeper Card has been disrupted.GKCard.Response deletePath(java.lang.String cardPath) throws java.io.IOException
cardPath - the path used in the actionResponse with information about the actionjava.io.IOException - when communication with the GateKeeper Card has been disrupted.GKCard.Response finalize(java.lang.String cardPath) throws java.io.IOException
cardPath - the path used in the actionResponse with information about the actionjava.io.IOException - when communication with the GateKeeper Card has been disrupted.void connect()
throws java.io.IOException
java.io.IOException - when communication with the GateKeeper Card has been disrupted.void disconnect()
throws java.io.IOException
java.io.IOException - when communication with the GateKeeper Card has been disrupted.GKCard.ConnectionState getConnectionState()
ConnectionState between this object and the
GateKeeper Card.void onConnectionChanged(GKCard.ConnectionState state)
state - the ConnectionState that describes the new state of the connectionvoid addMonitor(GKCard.Monitor monitor)
Monitor to be informed about changes to the state of the GateKeeper Card.monitor - the Monitor to be addedvoid removeMonitor(GKCard.Monitor monitor)
Monitor from the GKCard.monitor - the Monitor to be removed