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

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

public class THeaderEnlister
extends java.lang.Object

THeaderdEnlister provides services so that specific headers either given within a stream header or response can be enlisted at a TDataObject. Only headers that are of interest to the TDataObject are enlisted. Currently of interest are the last-modified and the content-type fields. This class implements the singleton pattern so only one instance is generally available.

Version:
$Revision: 1.3 $
Author:
Marcus Schreyer

Constructor Summary
protected THeaderEnlister()
          Default initialization.
 
Method Summary
 TDataObject enlistAll(TInputStream inputStream, TDataObject dataObject)
          Enlists all relevant headers that might be given within the streams header instance on the given TDataObject and hands this instance back.
 TDataObject enlistAll(TResponseHandle responseHandle, TDataObject dataObject)
          Enlists all relevant headers that might be given within the response instance on the given TDataObject and hands this instance back.
 TDataObject enlistContentType(TInputStream inputStream, TDataObject dataObject)
          Enlists the content-type header on the TDataObject instance and hands back this instance.
 TDataObject enlistContentType(TResponseHandle responseHandle, TDataObject dataObject)
          Enlists the content-type header on the TDataObject instance and hands back this instance.
 TDataObject enlistLastModified(TInputStream inputStream, TDataObject dataObject)
          Enlists the last-modified header on the TDataObject instance and hands back this instance.
 TDataObject enlistLastModified(TResponseHandle responseHandle, TDataObject dataObject)
          Enlists the last-modified header on the TDataObject instance and hands back this instance.
static THeaderEnlister getInstance()
          Gets the singleton instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

THeaderEnlister

protected THeaderEnlister()
Default initialization.

Method Detail

getInstance

public static THeaderEnlister getInstance()
Gets the singleton instance.


enlistAll

public TDataObject enlistAll(TInputStream inputStream,
                             TDataObject dataObject)
Enlists all relevant headers that might be given within the streams header instance on the given TDataObject and hands this instance back. The relevant headers currently comprise the last-modified and the content-type fields.


enlistAll

public TDataObject enlistAll(TResponseHandle responseHandle,
                             TDataObject dataObject)
Enlists all relevant headers that might be given within the response instance on the given TDataObject and hands this instance back. The relevant headers currently comprise the last-modified and the content-type fields.


enlistLastModified

public TDataObject enlistLastModified(TInputStream inputStream,
                                      TDataObject dataObject)
Enlists the last-modified header on the TDataObject instance and hands back this instance.


enlistLastModified

public TDataObject enlistLastModified(TResponseHandle responseHandle,
                                      TDataObject dataObject)
Enlists the last-modified header on the TDataObject instance and hands back this instance.


enlistContentType

public TDataObject enlistContentType(TInputStream inputStream,
                                     TDataObject dataObject)
Enlists the content-type header on the TDataObject instance and hands back this instance.


enlistContentType

public TDataObject enlistContentType(TResponseHandle responseHandle,
                                     TDataObject dataObject)
Enlists the content-type header on the TDataObject instance and hands back this instance.



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