public abstract class ProtocolAdapter extends Object implements ProtocolRequestListener, ProtocolEventListener
| Modifier and Type | Field and Description |
|---|---|
static boolean |
ReadOnly |
static String |
XML_FRAGMENT_END |
static String |
XML_FRAGMENT_START |
static String |
XML_FRAGMENT_START_END |
| Constructor and Description |
|---|
ProtocolAdapter() |
| Modifier and Type | Method and Description |
|---|---|
void |
addNBProtocolAdapter(ProtocolAdapter adapter) |
void |
addProtocolEventListener(ProtocolEventListener listener) |
void |
addSBProtocolAdapter(ProtocolAdapter adapter) |
boolean |
isAllowVersionMismatch() |
void |
notifyProtocolEventListeners(ProtocolEvent event) |
ProtocolResponse |
notifyProtocolRequestListener(ProtocolRequest request) |
void |
protocolEventNotify(ProtocolEvent event) |
ProtocolResponse |
protocolRequestNotify(ProtocolRequest request) |
void |
removeProtocolEventListener(ProtocolEventListener listener) |
abstract ProtocolResponse |
sendRequest(ProtocolRequest request) |
void |
setAllowVersionMismatch(boolean allowVersionMismatch) |
void |
setProtocolRequestListener(ProtocolRequestListener listener) |
public static final String XML_FRAGMENT_START
public static final String XML_FRAGMENT_END
public static final String XML_FRAGMENT_START_END
public static boolean ReadOnly
public void addNBProtocolAdapter(ProtocolAdapter adapter)
public void addSBProtocolAdapter(ProtocolAdapter adapter)
public void setProtocolRequestListener(ProtocolRequestListener listener)
public ProtocolResponse notifyProtocolRequestListener(ProtocolRequest request) throws ProtocolRequestException
ProtocolRequestExceptionpublic void addProtocolEventListener(ProtocolEventListener listener)
public void removeProtocolEventListener(ProtocolEventListener listener)
public void notifyProtocolEventListeners(ProtocolEvent event)
public ProtocolResponse protocolRequestNotify(ProtocolRequest request) throws ProtocolRequestException
protocolRequestNotify in interface ProtocolRequestListenerProtocolRequestExceptionpublic void protocolEventNotify(ProtocolEvent event)
protocolEventNotify in interface ProtocolEventListenerpublic boolean isAllowVersionMismatch()
public void setAllowVersionMismatch(boolean allowVersionMismatch)
public abstract ProtocolResponse sendRequest(ProtocolRequest request) throws ProtocolRequestException
ProtocolRequestExceptionCopyright 2004-2019 Solace Corporation. All rights reserved.