public abstract class TAbstractResponse extends java.lang.Object implements TResponseHandle
Constructor and Description |
---|
TAbstractResponse() |
Modifier and Type | Method and Description |
---|---|
TNonXMLObject |
getFirstNonXMLObject()
Gets the first non xml object given for the non xml object iterator.
|
TXMLObject |
getFirstXMLObject()
Gets the first xml object given for the xml object iterator.
|
TResponseInfoContent |
getInfoContent()
Gets the result state.
|
java.util.Locale |
getLocale()
Gets the locale.
|
java.lang.String |
getMessageCode()
Gets the code attribute for the first message block with a return value not equals 0 or
the empty string.
|
java.lang.String |
getMessageLine()
Gets the first message line for the first message block with a return value not equals 0 or
the message line of the last message block.
|
java.lang.String |
getMessageText()
Gets the message text for the first message block with a return value not equals 0 or
the empty string.
|
TNonXMLObjectIterator |
getNonXMLObjectIterator()
Gets the non XML object iterator.
|
TInputStream |
getQueryContentAsStream()
Gets the result of a query as a InputStream.
|
java.lang.String |
getQueryContentAsString()
Gets the content for a query related response as a String.
|
java.lang.String |
getReturnValue()
Gets the return value the first message block with a return value not equals 0 or
the return value of the last message block which then would be 0.
|
java.util.Iterator |
getWarnings()
Gets an iterator for the list of TWarning instances containing the Tamino warnings.
|
TXMLObjectIterator |
getXMLObjectIterator()
Gets the XML object iterator.
|
boolean |
hasFirstNonXMLObject()
Indicates if the response provides a first TNonXMLObject instance.
|
boolean |
hasFirstXMLObject()
Indicates if the response provides a first TXMLObject instance.
|
boolean |
hasQueryContent()
Indicates if the response provides content that is referred to a previously invoked query.
|
boolean |
hasWarnings()
Indicates if the response of Tamino contained any warning information.
|
void |
setLocale(java.util.Locale locale)
Sets the locale.
|
java.lang.String |
toString()
Shows a text representation of the response.
|
public java.lang.String getReturnValue()
getReturnValue
in interface TResponse
public java.lang.String getMessageLine()
getMessageLine
in interface TResponseHandle
public java.lang.String getMessageText()
getMessageText
in interface TResponseHandle
public java.lang.String getMessageCode()
getMessageCode
in interface TResponseHandle
public TResponseInfoContent getInfoContent()
getInfoContent
in interface TResponseHandle
public TXMLObjectIterator getXMLObjectIterator()
getXMLObjectIterator
in interface TResponse
public TXMLObject getFirstXMLObject()
getFirstXMLObject
in interface TResponse
public boolean hasFirstXMLObject()
hasFirstXMLObject
in interface TResponse
public TNonXMLObjectIterator getNonXMLObjectIterator()
getNonXMLObjectIterator
in interface TResponse
public TNonXMLObject getFirstNonXMLObject()
getFirstNonXMLObject
in interface TResponse
public boolean hasFirstNonXMLObject()
hasFirstNonXMLObject
in interface TResponse
public boolean hasQueryContent()
hasQueryContent
in interface TResponse
public java.lang.String getQueryContentAsString()
getQueryContentAsString
in interface TResponse
public TInputStream getQueryContentAsStream()
getQueryContentAsStream
in interface TResponse
public boolean hasWarnings()
hasWarnings
in interface TResponse
public java.util.Iterator getWarnings()
getWarnings
in interface TResponse
public void setLocale(java.util.Locale locale)
public java.util.Locale getLocale()
public java.lang.String toString()
toString
in class java.lang.Object
Copyright (c) 2017 Software AG. All Rights Reserved.