Calypso Gateway v1.0

codec.build
Class ServerReplyBuilder

java.lang.Object
  |
  +--codec.build.ServerReplyBuilder
Direct Known Subclasses:
ClientCallBuilder

public class ServerReplyBuilder
extends java.lang.Object

Class for constructing Reply PDU, based on introspection of CORBA response returned by CORBA object.


Field Summary
protected  com.t3.ot.pco.ASP asp
          PDU constructed by Builder.
protected  int introspectionLevel
          Depth of introspection level we are currently in.
protected  boolean isExcBody
           
protected  boolean isFirstMemberProcessed
          Did we already parse first element of "DynIterator", where return value which requires some special handling might have been placed.
protected  boolean isRetValuePresent
          Is return value present in "DynIterator".
protected  int[] lastStructType
          Type of IDL structure (choice, sequence, array, struct, none) lately visited while constructing PDU.
protected static int MAX_INTROSPECTION_LEVELS
           
protected  org.omg.CORBA.ORB orb
          Reference to CORBA ORB.
protected static int STRUCT_TYPE_ARRAY
           
protected static int STRUCT_TYPE_NONE
           
protected static int STRUCT_TYPE_SEQUENCE
           
protected static int STRUCT_TYPE_STRUCT
           
protected static int STRUCT_TYPE_UNION
           
 
Constructor Summary
ServerReplyBuilder()
           
 
Method Summary
protected  void addComponent(DynNode dynNode)
          Perform next step of PDU construction process.
protected  java.lang.String addPrefix(DynNode dynNode)
          Add prefix to field name, according to current Builder state.
 void construct(ServantRequest servantRequest)
          Construct PDU based on information from operation response.
 void constructException(ServantRequest servantRequest)
          Construct Exception PDU based on information from operation response provided that Server or ORB have thrown an exception.
 com.t3.ot.pco.ASP getAsp()
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

asp

protected com.t3.ot.pco.ASP asp
PDU constructed by Builder.

orb

protected org.omg.CORBA.ORB orb
Reference to CORBA ORB.

introspectionLevel

protected int introspectionLevel
Depth of introspection level we are currently in.

MAX_INTROSPECTION_LEVELS

protected static final int MAX_INTROSPECTION_LEVELS

lastStructType

protected int[] lastStructType
Type of IDL structure (choice, sequence, array, struct, none) lately visited while constructing PDU. Determines what kind of of prefix, if any, shall be added in front of field name.

STRUCT_TYPE_UNION

protected static final int STRUCT_TYPE_UNION

STRUCT_TYPE_SEQUENCE

protected static final int STRUCT_TYPE_SEQUENCE

STRUCT_TYPE_ARRAY

protected static final int STRUCT_TYPE_ARRAY

STRUCT_TYPE_STRUCT

protected static final int STRUCT_TYPE_STRUCT

STRUCT_TYPE_NONE

protected static final int STRUCT_TYPE_NONE

isFirstMemberProcessed

protected boolean isFirstMemberProcessed
Did we already parse first element of "DynIterator", where return value which requires some special handling might have been placed.

isRetValuePresent

protected boolean isRetValuePresent
Is return value present in "DynIterator". It may be absent if it is of type "void".

isExcBody

protected boolean isExcBody
Constructor Detail

ServerReplyBuilder

public ServerReplyBuilder()
Method Detail

getAsp

public com.t3.ot.pco.ASP getAsp()

construct

public void construct(ServantRequest servantRequest)
Construct PDU based on information from operation response.

constructException

public void constructException(ServantRequest servantRequest)
Construct Exception PDU based on information from operation response provided that Server or ORB have thrown an exception.

addPrefix

protected java.lang.String addPrefix(DynNode dynNode)
Add prefix to field name, according to current Builder state.

addComponent

protected void addComponent(DynNode dynNode)
Perform next step of PDU construction process.

Calypso Gateway v1.0