public abstract class AbstractResponse<T> extends AbstractMessage
Abstract AbstractResponse class.
Modifier | Constructor and Description |
---|---|
protected |
AbstractResponse(T result)
Constructor for AbstractResponse.
|
Modifier and Type | Method and Description |
---|---|
InetSocketAddress |
getAddress()
The sender address
|
AbstractRequest |
getRequest()
The originating request
|
protected T |
getResult()
The decoded result object
|
void |
setAddress(InetSocketAddress address)
Setter for the field
address . |
void |
setRequest(AbstractRequest request)
Setter for the field
request . |
buildToString, equals, hashCode, id, toString
protected AbstractResponse(T result)
Constructor for AbstractResponse.
result
- a T objectprotected T getResult()
The decoded result object
public final InetSocketAddress getAddress()
InetSocketAddress
representing the address and port of the sender@ApiStatus.Internal public void setAddress(InetSocketAddress address)
Setter for the field address
.
address
- a InetSocketAddress
objectpublic final AbstractRequest getRequest()
AbstractRequest
@ApiStatus.Internal public void setRequest(AbstractRequest request)
Setter for the field request
.
request
- a AbstractRequest
objectCopyright © 2016–2024. All rights reserved.