public class ImportMessage extends Message
Modifier and Type | Class and Description |
---|---|
static class |
ImportMessage.ImportMessageType
Different type of import messages.
|
inResponseTo
Modifier | Constructor and Description |
---|---|
protected |
ImportMessage()
Constructor.
|
protected |
ImportMessage(Message respondTo)
Response constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
getBusMemberId() |
ImportMessage.ImportMessageType |
getMessageType() |
Resource[] |
getParameters() |
static ImportMessage |
importAddSubscription(String requestedBusMember,
Resource[] newBusMemberParameters)
Create a importAddSubscription
ImportMessage for a particular
ProxyBusMember with certain parameters. |
static ImportMessage |
importRemove(String requestedBusMember)
Create a importRemove
ImportMessage for a particular
ProxyBusMember . |
static ImportMessage |
importRemoveSubscription(String requestedBusMember,
Resource[] newBusMemberParameters)
Create a importRemoveSubscription
ImportMessage for a particular
ProxyBusMember with certain parameters. |
static ImportMessage |
importRequest(String requestedBusMember,
Resource[] busMemberParameters)
Create a importRequest
ImportMessage for a particular
ProxyBusMember with certain parameters. |
static ImportMessage |
importResponse(ImportMessage request,
String proxyIdentifyer)
Create a importResponse
ImportMessage . |
boolean |
isAccepted()
Check that an ImportResponse type Message has been accepted.
|
getInResponseTo, getSequence, isResponse
protected ImportMessage()
protected ImportMessage(Message respondTo)
respondTo
- public final ImportMessage.ImportMessageType getMessageType()
public final String getBusMemberId()
public final Resource[] getParameters()
public boolean isAccepted()
public static ImportMessage importRequest(String requestedBusMember, Resource[] busMemberParameters)
ImportMessage
for a particular
ProxyBusMember
with certain parameters.requestedBusMember
- the busMember identification for future reference, This should
be the reference of the proxy created locally.busMemberParameters
- public static ImportMessage importResponse(ImportMessage request, String proxyIdentifyer)
ImportMessage
.request
- the request to respond to.proxyIdentifyer
- The identifier of the local proxy created (so remote
associates it to its local), null if the request is denied.public static ImportMessage importAddSubscription(String requestedBusMember, Resource[] newBusMemberParameters)
ImportMessage
for a particular
ProxyBusMember
with certain parameters.requestedBusMember
- the busMember identification for future reference, This should
be the local reference.busMemberParameters
- The parameters to add.public static ImportMessage importRemoveSubscription(String requestedBusMember, Resource[] newBusMemberParameters)
ImportMessage
for a particular
ProxyBusMember
with certain parameters.requestedBusMember
- the busMember identification for future reference, This should
be the local reference.busMemberParameters
- the parameters to be removed.public static ImportMessage importRemove(String requestedBusMember)
ImportMessage
for a particular
ProxyBusMember
.requestedBusMember
- the busMember identification for future reference, This should
be the local proxy reference.Copyright © 2018 universAAL Consortium. All rights reserved.