public class Response extends Object implements Serializable
| Constructor and Description |
|---|
Response(int cd,
short rval,
int rcode,
Buffer buffer,
int flags)
When a client receives a response this is the method that is used by the core framework to assemble the response.
|
Response(short rval,
int rcode,
Buffer buffer,
int flags)
Services construct their responses using this constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Buffer |
getBuffer()
Get the buffer that the service responded with.
|
int |
getCd()
Get the cd of the service that responded (may vary based on
Connection#TPGETANY) |
int |
getFlags()
Get the flags that the service responded with.
|
int |
getRcode()
Get the return code
|
short |
getRval()
Get the return value
|
public Response(short rval,
int rcode,
Buffer buffer,
int flags)
rval - The value the service wishes to use.rcode - The code the service wants to respond with.buffer - The buffer to return.flags - The flags to respond with.public Response(int cd,
short rval,
int rcode,
Buffer buffer,
int flags)
cd - The connection that actually received the response (may be different to expected if Connection.TPGETANY
was used.rval - The return value.rcode - The return code.buffer - The buffer response.flags - The flags the service used.public short getRval()
public int getRcode()
public int getFlags()
public Buffer getBuffer()
public int getCd()
Connection#TPGETANY)Copyright © 2020 JBoss by Red Hat. All rights reserved.