public abstract class AbstractProtocolOut<ProRequest,ProResponse> extends AbstractProtocol implements ProtocolOutInterface<ProRequest,ProResponse>
Constructor and Description |
---|
AbstractProtocolOut() |
Modifier and Type | Method and Description |
---|---|
void |
addProtocolListener(ProtocolOutListener listener) |
protected ProRequest |
afterBizToRequestTrans(Object bizRequest,
ProRequest request,
Context context) |
protected Object |
afterResponseToBizTrans(ProResponse proResponse,
Object bizResponse,
Context context) |
protected ProResponse |
afterSend(ProRequest proRequest,
ProResponse proResponse,
Context context) |
protected Object |
beforeSend(Object bizRequest,
Context context) |
List<ProtocolOutListener> |
getListeners() |
void |
setListeners(List<ProtocolOutListener> listeners) |
getId, getProtocolTrans, setId, setProtocolTrans
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
asynSend, getChannelClient, send, setChannelClient
getId, setId, setProtocolTrans
public List<ProtocolOutListener> getListeners()
public void setListeners(List<ProtocolOutListener> listeners)
public void addProtocolListener(ProtocolOutListener listener)
addProtocolListener
in interface ProtocolOutInterface<ProRequest,ProResponse>
protected ProRequest afterBizToRequestTrans(Object bizRequest, ProRequest request, Context context)
protected ProResponse afterSend(ProRequest proRequest, ProResponse proResponse, Context context)
protected Object afterResponseToBizTrans(ProResponse proResponse, Object bizResponse, Context context)
Copyright © 2006–2018 TinyGroup. All rights reserved.