org.jacorb.orb.giop

Class ReplyInputStream

public class ReplyInputStream extends ServiceContextTransportingInputStream

Version: $Id: ReplyInputStream.java,v 1.24 2006/06/28 12:41:43 alphonse.bendt Exp $

Author: Gerald Brose, FU Berlin 1999

Field Summary
ReplyHeader_1_2rep_hdr
Constructor Summary
ReplyInputStream(ORB orb, byte[] buffer)
Method Summary
protected voidfinalize()
byte[]getBody()
Returns a copy of the body of this reply.
ExceptiongetException()
Returns any exception that is indicated by this reply.
ServiceContextgetServiceContext(int id)
Returns the ServiceContext with the given id, if one is present.
ReplyStatusType_1_2getStatus()
Returns the reply status of this reply.

Field Detail

rep_hdr

public final ReplyHeader_1_2 rep_hdr

Constructor Detail

ReplyInputStream

public ReplyInputStream(ORB orb, byte[] buffer)

Method Detail

finalize

protected void finalize()

getBody

public byte[] getBody()
Returns a copy of the body of this reply. This does not include the GIOP header and the reply header.

getException

public Exception getException()
Returns any exception that is indicated by this reply. If the reply status is USER_EXCEPTION, SYSTEM_EXCEPTION, LOCATION_FORWARD, or LOCATION_FORWARD_PERM, an appropriate exception object is returned. For any other status, returns null.

getServiceContext

public ServiceContext getServiceContext(int id)
Returns the ServiceContext with the given id, if one is present. If there is no such ServiceContext, returns null.

getStatus

public ReplyStatusType_1_2 getStatus()
Returns the reply status of this reply.