public abstract class AbstractRequest<T> extends Object implements Request<T>
| Constructor and Description |
|---|
AbstractRequest()
Derived classes must call this constructor via super() if they want to get
the benefit of delegate handling.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
canBeCancelled()
A request object may be canceled if this method returns true.
|
void |
cancel()
Cancel the current request; this implementation will always throw an
IllegalStateException.
|
boolean |
equals(Object pOther) |
RequestDelegate<T> |
getDelegate()
Returns our request delegate.
|
DispatchTarget<T> |
getDispatchTarget()
Returns our dispatch target.
|
int |
hashCode() |
void |
setDispatchTarget(DispatchTarget<T> pTarget)
Sets our dispatch target.
|
void |
setDispatchTarget(Object pTargetObject,
String pMethodName)
Sets our dispatch target.
|
String |
toString() |
public AbstractRequest()
public void setDispatchTarget(DispatchTarget<T> pTarget)
RequestsetDispatchTarget in interface Request<T>pTarget - the target to set (null is o.k.)public void setDispatchTarget(Object pTargetObject, String pMethodName)
RequestsetDispatchTarget in interface Request<T>pTargetObject - target to call, must not be nullpMethodName - method to call, must not be null and match the
void <pMethodName>(Response pResponse) signaturepublic DispatchTarget<T> getDispatchTarget()
RequestgetDispatchTarget in interface Request<T>public RequestDelegate<T> getDelegate()
RequestgetDelegate in interface Request<T>public boolean canBeCancelled()
RequestcanBeCancelled in interface Request<T>public void cancel()
throws IllegalStateException
cancel in interface Request<T>IllegalStateException - always thrownCopyright © 2022 Jürgen Zeller (privat). All rights reserved.