railo.runtime.engine
Class ThreadLocalPageContext

java.lang.Object
  extended by railo.runtime.engine.ThreadLocalPageContext

public final class ThreadLocalPageContext
extends Object

class to handle thread local PageContext, do use pagecontext in classes that have no method argument pagecontext


Constructor Summary
ThreadLocalPageContext()
           
 
Method Summary
static PageContext get()
          returns pagecontext registered for the current thread
static PageContext get(PageContext pc)
           
static Config getConfig()
           
static Config getConfig(Config config)
           
static Config getConfig(PageContext pc)
           
static Locale getLocale(PageContext pc)
           
static TimeZone getTimeZone()
           
static TimeZone getTimeZone(Config config)
           
static TimeZone getTimeZone(PageContext pc)
           
static TimeZone getTimeZone(TimeZone timezone)
           
static void register(PageContext pc)
          register a pagecontext for he current thread
static void release()
          release the pagecontext for the current thread
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThreadLocalPageContext

public ThreadLocalPageContext()
Method Detail

register

public static void register(PageContext pc)
register a pagecontext for he current thread

Parameters:
pc - PageContext to register

get

public static PageContext get()
returns pagecontext registered for the current thread

Returns:
pagecontext for the current thread or null if no pagecontext is regisred for the current thread

getConfig

public static Config getConfig()

release

public static void release()
release the pagecontext for the current thread


getConfig

public static Config getConfig(PageContext pc)

getConfig

public static Config getConfig(Config config)

getTimeZone

public static TimeZone getTimeZone(PageContext pc)

getLocale

public static Locale getLocale(PageContext pc)

getTimeZone

public static TimeZone getTimeZone(Config config)

getTimeZone

public static TimeZone getTimeZone(TimeZone timezone)

getTimeZone

public static TimeZone getTimeZone()

get

public static PageContext get(PageContext pc)


Copyright © 2012 Railo