public abstract class DavRequester extends Object
Modifier and Type | Field and Description |
---|---|
protected AttributeGroup |
_attributeGroup |
protected ClientDavConnection |
_connection |
protected static Debug |
_debug |
protected Aspect |
_receiveAspect |
protected Aspect |
_sendAspect |
protected static int |
ANSWER_ERROR |
protected static int |
ANSWER_OK |
protected static int |
APP_SUBSCRIPTION_INFO |
protected static int |
SUBSCRIBE_TRANSMITTER_DRAIN |
protected static int |
SUBSCRIBE_TRANSMITTER_SOURCE |
protected static int |
SUBSCRIPTION_INFO |
Constructor and Description |
---|
DavRequester(ClientDavConnection connection,
Aspect sendAspect,
Aspect receiveAspect)
Erzeugt einen neuen DavRequester
|
Modifier and Type | Method and Description |
---|---|
protected abstract void |
onReceive(Data data)
Wird beim Empfang von Daten aufgerufen
|
protected void |
sendBytes(long target,
long requestId,
long answerKind,
byte[] data,
SystemObject senderObject) |
protected void |
sendBytes(SystemObject target,
long requestId,
long answerKind,
byte[] data,
SystemObject senderObject)
Sendet eine Anfrage mit einem byte-Array als Daten
|
protected void |
sendError(long target,
long requestId,
String errorString,
SystemObject senderObject) |
protected void |
sendError(SystemObject target,
long requestId,
String errorString,
SystemObject senderObject)
Sendet eine Anfrage mit einer Fehlernachricht
|
protected void |
subscribeDrain(SystemObject object)
Initialisiert den Dav-Requester und meldet sich als Senke für Nachrichten an.
|
protected static final Debug _debug
protected static final int SUBSCRIBE_TRANSMITTER_SOURCE
protected static final int SUBSCRIBE_TRANSMITTER_DRAIN
protected static final int SUBSCRIPTION_INFO
protected static final int APP_SUBSCRIPTION_INFO
protected static final int ANSWER_OK
protected static final int ANSWER_ERROR
protected final ClientDavConnection _connection
protected final AttributeGroup _attributeGroup
protected final Aspect _receiveAspect
protected final Aspect _sendAspect
public DavRequester(ClientDavConnection connection, Aspect sendAspect, Aspect receiveAspect)
connection
- Verbindung zum DatenverteilersendAspect
- Sende-AspektreceiveAspect
- Empfangs-Aspektprotected void subscribeDrain(SystemObject object)
object
- Applikation auf die sich angemeldet werden sollprotected abstract void onReceive(Data data)
data
- Datenprotected void sendError(SystemObject target, long requestId, String errorString, SystemObject senderObject) throws IOException
target
- Ziel-SystemobjektrequestId
- Anfrage-IDerrorString
- FehlermeldungsenderObject
- Eigenes SystemobjektIOException
protected void sendError(long target, long requestId, String errorString, SystemObject senderObject) throws IOException
IOException
protected void sendBytes(SystemObject target, long requestId, long answerKind, byte[] data, SystemObject senderObject) throws IOException
target
- Ziel-SystemobjektrequestId
- Anfrage-IDanswerKind
- Nachrichtentypdata
- DatensenderObject
- Eigenes SystemobjektIOException
protected void sendBytes(long target, long requestId, long answerKind, byte[] data, SystemObject senderObject) throws IOException
IOException