com.softwareag.tamino.db.api.response
Class TResponseContentFactory

java.lang.Object
  extended by com.softwareag.tamino.db.api.response.TResponseContentFactory

public class TResponseContentFactory
extends java.lang.Object

TResponseContentFactory is a factory class for the instantiation of so called response content instances. These are instances that can be contained within a response including a response as well. Class implements the singleton pattern.

Version:
$Revision: 1.15 $
Author:
Marcus Schreyer

Constructor Summary
protected TResponseContentFactory()
          Protected Default Constructor.
 
Method Summary
static TResponseContentFactory getInstance()
          Gets the singleton instance.
 java.util.Locale getLocale()
          Gets the locale.
 TResponseHandle newResponse(TInputStream inputStream)
          Creates a TResponse object.
 TResponseHandle newResponse(TInputStreamInterpreter inputStreamInterpreter)
          Creates a TResponse object.
 TResponseHandle newResponse(TInputStreamInterpreter inputStreamInterpreter, TNonXMLObjectIterator nonXMLObjectIterator)
          Creates a TResponse object.
 TResponseHandle newResponse(TInputStreamInterpreter inputStreamInterpreter, TXMLObjectIterator xmlObjectIterator)
          Creates a TResponse object.
 TResponseHandle newResponse(TXMLObject xmlObject)
          Creates a TResponse object.
 TResponseInfoContent newResponseInfoContent()
          Creates a TResponseInfoContent object.
 TResponseQueryContent newResponseQueryContent()
          Creates a TResponseQueryContent object.
 TResponseQueryContent newResponseQueryContent(java.util.Iterator iterator)
          Creates a TResponseQueryContent object.
 void setLocale(java.util.Locale locale)
          Sets the locale.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TResponseContentFactory

protected TResponseContentFactory()
Protected Default Constructor.

Method Detail

getInstance

public static TResponseContentFactory getInstance()
Gets the singleton instance.


newResponse

public TResponseHandle newResponse(TInputStreamInterpreter inputStreamInterpreter)
                            throws TResponseBuildException
Creates a TResponse object.

Throws:
TResponseBuildException

newResponse

public TResponseHandle newResponse(TInputStreamInterpreter inputStreamInterpreter,
                                   TXMLObjectIterator xmlObjectIterator)
                            throws TResponseBuildException
Creates a TResponse object.

Throws:
TResponseBuildException

newResponse

public TResponseHandle newResponse(TInputStreamInterpreter inputStreamInterpreter,
                                   TNonXMLObjectIterator nonXMLObjectIterator)
                            throws TResponseBuildException
Creates a TResponse object.

Throws:
TResponseBuildException

newResponse

public TResponseHandle newResponse(TXMLObject xmlObject)
                            throws TResponseBuildException
Creates a TResponse object.

Throws:
TResponseBuildException

newResponse

public TResponseHandle newResponse(TInputStream inputStream)
                            throws TResponseBuildException
Creates a TResponse object.

Throws:
TResponseBuildException

newResponseInfoContent

public TResponseInfoContent newResponseInfoContent()
Creates a TResponseInfoContent object.


newResponseQueryContent

public TResponseQueryContent newResponseQueryContent(java.util.Iterator iterator)
Creates a TResponseQueryContent object.


newResponseQueryContent

public TResponseQueryContent newResponseQueryContent()
Creates a TResponseQueryContent object.


setLocale

public void setLocale(java.util.Locale locale)
Sets the locale.


getLocale

public java.util.Locale getLocale()
Gets the locale.

Returns:
the locale.


Copyright (c) 2013 Software AG. All Rights Reserved.