railo.runtime.thread
Class ThreadUtil

java.lang.Object
  extended by railo.runtime.thread.ThreadUtil

public class ThreadUtil
extends Object


Constructor Summary
ThreadUtil()
           
 
Method Summary
static javax.servlet.http.HttpServletRequest cloneHttpServletRequest(PageContext pc)
           
static PageContextImpl clonePageContext(PageContext pc, OutputStream os, boolean stateless, boolean registerPC, boolean isChild)
           
static javax.servlet.http.HttpServletResponse createHttpServletResponse(OutputStream os)
           
static PageContextImpl createPageContext(ConfigWeb config, OutputStream os, String serverName, String requestURI, String queryString, javax.servlet.http.Cookie[] cookies, Pair[] headers, Pair[] parameters, Struct attributes)
           
static int toIntPriority(String strPriority)
          return priority as a int representation
static String toStringPriority(int priority)
          return priority as a String representation
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThreadUtil

public ThreadUtil()
Method Detail

clonePageContext

public static PageContextImpl clonePageContext(PageContext pc,
                                               OutputStream os,
                                               boolean stateless,
                                               boolean registerPC,
                                               boolean isChild)

createPageContext

public static PageContextImpl createPageContext(ConfigWeb config,
                                                OutputStream os,
                                                String serverName,
                                                String requestURI,
                                                String queryString,
                                                javax.servlet.http.Cookie[] cookies,
                                                Pair[] headers,
                                                Pair[] parameters,
                                                Struct attributes)

cloneHttpServletRequest

public static javax.servlet.http.HttpServletRequest cloneHttpServletRequest(PageContext pc)

createHttpServletResponse

public static javax.servlet.http.HttpServletResponse createHttpServletResponse(OutputStream os)

toStringPriority

public static String toStringPriority(int priority)
return priority as a String representation

Parameters:
priority - Thread priority
Returns:
String defintion of priority (null when input is invalid)

toIntPriority

public static int toIntPriority(String strPriority)
return priority as a int representation

Parameters:
priority - Thread priority as String definition
Returns:
int defintion of priority (-1 when input is invalid)


Copyright © 2012 Railo