org.jboss.blacktie.jatmibroker.xatmi
Class Response

java.lang.Object
  extended by org.jboss.blacktie.jatmibroker.xatmi.Response
All Implemented Interfaces:
Serializable

public class Response
extends Object
implements Serializable

This class encapsulates the response from the remote service and the return code

See Also:
Serialized Form

Constructor Summary
Response(short rval, int rcode, Buffer buffer, int flags)
          Services construct their responses using this constructor.
 
Method Summary
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Response

public Response(short rval,
                int rcode,
                Buffer buffer,
                int flags)
Services construct their responses using this constructor.

Parameters:
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.
Method Detail

getRval

public short getRval()
Get the return value

Returns:
The return value

getRcode

public int getRcode()
Get the return code

Returns:
The return code

getFlags

public int getFlags()
Get the flags that the service responded with.

Returns:
The flags

getBuffer

public Buffer getBuffer()
Get the buffer that the service responded with.

Returns:
The buffer

getCd

public int getCd()
Get the cd of the service that responded (may vary based on Connection#TPGETANY)

Returns:
The connection descriptor


Copyright © 2010 JBoss, a division of Red Hat, Inc.. All Rights Reserved.