com.revusky.niggle.templates
Class PresentationWrapper

java.lang.Object
  |
  +--com.revusky.niggle.templates.PresentationWrapper
Direct Known Subclasses:
FreemarkerPresentationWrapper

public abstract class PresentationWrapper
extends java.lang.Object


Field Summary
protected  java.lang.String contentType
           
protected  ServletInteraction interaction
           
protected  java.util.Locale locale
          locale to use to select encoding for generated HTML
protected static java.lang.Class recordWrapperClass
           
 
Constructor Summary
PresentationWrapper()
           
 
Method Summary
protected static PresentationWrapper createRecordWrapper(Record rec, ServletInteraction interaction, java.lang.String contentType)
          create a wrapper of the appropriate class to wrap the given record, reusing the context info.
 java.util.Locale getLocale()
           
protected  void inheritFrom(PresentationWrapper pw)
           
 void setContentType(java.lang.String contentType)
           
 void setRecord(Record rec)
           
static void setRecordWrapperClass(java.lang.Class cl)
           
 void setSessionContext(ServletInteraction interaction)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

recordWrapperClass

protected static java.lang.Class recordWrapperClass

interaction

protected ServletInteraction interaction

contentType

protected java.lang.String contentType

locale

protected java.util.Locale locale
locale to use to select encoding for generated HTML
Constructor Detail

PresentationWrapper

public PresentationWrapper()
Method Detail

setRecordWrapperClass

public static void setRecordWrapperClass(java.lang.Class cl)

setSessionContext

public void setSessionContext(ServletInteraction interaction)

setContentType

public void setContentType(java.lang.String contentType)

inheritFrom

protected void inheritFrom(PresentationWrapper pw)

createRecordWrapper

protected static PresentationWrapper createRecordWrapper(Record rec,
                                                         ServletInteraction interaction,
                                                         java.lang.String contentType)
create a wrapper of the appropriate class to wrap the given record, reusing the context info.

setRecord

public void setRecord(Record rec)

getLocale

public java.util.Locale getLocale()