de.sagd.u4etx.cis
Class InfoServiceResponse

java.lang.Object
  |
  +--de.sagd.u4etx.cis.AbstractServiceResponse
        |
        +--de.sagd.u4etx.cis.InfoServiceResponse
All Implemented Interfaces:
IServiceResponse

public class InfoServiceResponse
extends AbstractServiceResponse

This class encapsulates the response of an InfoService request. It inherits from AbstractServiceResponse and thus implements the interface IServiceResponse. The class provides you 2 methods to access the information of the response (see method documentation).


Fields inherited from class de.sagd.u4etx.cis.AbstractServiceResponse
abResponse
 
Constructor Summary
InfoServiceResponse(byte[] abResponse, ObjectType objectType)
          Default constructor.
 
Method Summary
 IServiceResponseObject getServiceResponseObject(int i)
          Returns the response object found at the given index.
 
Methods inherited from class de.sagd.u4etx.cis.AbstractServiceResponse
getCommonHeader
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InfoServiceResponse

public InfoServiceResponse(byte[] abResponse,
                           ObjectType objectType)
                    throws ServiceResponseException
Default constructor.
Parameters:
abResponse - The response (byte array) from the broker.
objectType - The object type of the message wend as request.
Throws:
ServiceResponseException - If the response is malformed.
Method Detail

getServiceResponseObject

public IServiceResponseObject getServiceResponseObject(int i)
Returns the response object found at the given index. You can determine the number of objects in the current response by calling the method getCommonHeader().getCurrentNumObjects().
Parameters:
i - The index of the object to return.
Returns:
The response object found at the given index.
Throws:
ArrayIndexOutOfBoundsException - If you pass a wrong index.