Skip to main content
Package: com.phoenix_int.aserver.client.v2 Class Hierarchy

Declaration
Implementation of PHXResponse along lines of PHXResponse in C++ code.

Constructor Summary

Method Summary

Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

Constructor: AnalysisServerResponse

Method Detail

getID

Get the unique identifier of the message.

getHost

Get the host which sent the message.

getResponseType

Get the type of response.

getStringData

Get the string data; only valid if format is Normal or Extended.

getErrorMessage

Get the server error; only valid if response type is ServerError or ConnectionError.

getBinaryData

Get the binary data; only valid if format is Extended or Icon.

isText

Does the response have text content?

hasText

Does this response have actual string data (i.e. string data is not empty)?

isBinary

Is this a response with binary data?

isSuccess

Is the response a successful response?

isError

Does the response represent an error?

asVersion

Get the response as a server version. Throws:
  • java.lang.IllegalStateException - if this is not a text response
  • AnalysisServerException - if the data is not valid

asComponentDescription

Parse a component description. Parameters:
  • asXml - whether to interpret the result as XML
Returns:
  • the description
Throws:
  • java.lang.IllegalStateException - if this is not a text response
  • AnalysisServerException - if the data is not valid

asList

Convert the string data to a list of properties. Returns:
  • the list of items
Throws:
  • java.lang.IllegalStateException - if the data is not text

asMethodDescriptors

Convert the string data to a list of method descriptors. Returns:
  • the list
Throws:
  • java.lang.IllegalStateException - if the data is not text

asPropertyDescriptors

Parse this response as a sequence of property descriptors. Returns:
  • a set of property descriptors, which may be empty
Throws:
  • java.lang.IllegalStateException - if this is not a text response
  • AnalysisServerException - if the data is not valid

asPropertyDescriptors

Parse this response as a sequence of property descriptors. Parameters:
  • baseObjectName - the object to retrieve information for; null for none
Returns:
  • a set of property descriptors, which may be empty
Throws:
  • java.lang.IllegalStateException - if this is not a text response
  • AnalysisServerException - if the data is not valid

asChunkDescriptor

Parse the response as a chunk descriptor. Returns:
  • the chunk descriptor
Throws:
  • java.lang.IllegalStateException - if this is not a text response
  • AnalysisServerException - if the data is not valid

asValueDescriptors

Parse the response as a list of value descriptors. Returns:
  • the list, which may be empty
Throws:
  • java.lang.IllegalStateException - if this is not a text response
  • AnalysisServerException - if the data is not valid

asVersionHistory

Parse the response as a version history. Returns:
  • the version history
Throws:
  • java.lang.IllegalStateException - if this is not a text response
  • AnalysisServerException - if the data is not valid

asHierarchy

Parse the response as a variable hierarchy. Returns:
  • the map from variable paths to values
Throws:
  • java.lang.IllegalStateException - if this is not a text response
  • AnalysisServerException - if the data is not valid