public abstract class AbstractProtocolIn<ProRequest,ProResponse> extends AbstractProtocol implements ProtocolInInterface<ProRequest,ProResponse>
Constructor and Description |
---|
AbstractProtocolIn() |
Modifier and Type | Method and Description |
---|---|
void |
addProtocolListener(ProtocolInListener listener) |
protected ProResponse |
afterBizToResponseTrans(Object bizResponse,
ProResponse proResponse,
Context context) |
protected Object |
afterProcess(ProRequest request,
Object bizResponse,
Context context) |
protected ProRequest |
afterReceived(ProRequest proRequest,
Context context) |
protected Object |
afterRequestToBizTrans(ProRequest proRequest,
Object bizRequest,
Context context) |
List<ProtocolInListener> |
getListeners() |
protected abstract ProResponse |
realDeal(ProRequest proRequest,
Context context) |
ProResponse |
received(ProRequest proRequest) |
void |
setListeners(List<ProtocolInListener> listeners) |
getId, getProtocolTrans, setId, setProtocolTrans
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setProtocolProcess
getId, setId, setProtocolTrans
public List<ProtocolInListener> getListeners()
public void setListeners(List<ProtocolInListener> listeners)
public void addProtocolListener(ProtocolInListener listener)
addProtocolListener
in interface ProtocolInInterface<ProRequest,ProResponse>
public ProResponse received(ProRequest proRequest)
received
in interface ProtocolInInterface<ProRequest,ProResponse>
protected abstract ProResponse realDeal(ProRequest proRequest, Context context)
protected ProRequest afterReceived(ProRequest proRequest, Context context)
protected Object afterRequestToBizTrans(ProRequest proRequest, Object bizRequest, Context context)
protected Object afterProcess(ProRequest request, Object bizResponse, Context context)
protected ProResponse afterBizToResponseTrans(Object bizResponse, ProResponse proResponse, Context context)
Copyright © 2006–2018 TinyGroup. All rights reserved.