railo.runtime.net.http
Class ReqRspUtil
java.lang.Object
railo.runtime.net.http.ReqRspUtil
public final class ReqRspUtil
- extends Object
Method Summary |
static Pair[] |
add(Pair[] items,
String name,
Object value)
|
static String |
decode(String str,
String charset,
boolean force)
|
static String |
encode(String str,
String charset)
|
static String |
get(Pair[] items,
String name)
|
static javax.servlet.http.Cookie[] |
getCookies(Config config,
javax.servlet.http.HttpServletRequest req)
|
static String |
getHeader(javax.servlet.http.HttpServletRequest request,
String name,
String defaultValue)
|
static String |
getScriptName(javax.servlet.http.HttpServletRequest req)
|
static boolean |
isThis(javax.servlet.http.HttpServletRequest req,
String url)
|
static boolean |
isThis(javax.servlet.http.HttpServletRequest req,
URL url)
|
static boolean |
needDecoding(String str)
|
static boolean |
needEncoding(String str,
boolean allowPlus)
|
static String |
self(javax.servlet.http.HttpServletRequest req)
return path to itself |
static Pair[] |
set(Pair[] items,
String name,
Object value)
|
static void |
setCharacterEncoding(javax.servlet.http.HttpServletResponse rsp,
String charset)
|
static void |
setContentLength(javax.servlet.http.HttpServletResponse rsp,
int length)
|
static void |
setContentLength(javax.servlet.http.HttpServletResponse rsp,
long length)
|
ReqRspUtil
public ReqRspUtil()
get
public static String get(Pair[] items,
String name)
add
public static Pair[] add(Pair[] items,
String name,
Object value)
set
public static Pair[] set(Pair[] items,
String name,
Object value)
self
public static String self(javax.servlet.http.HttpServletRequest req)
- return path to itself
- Parameters:
req
-
setContentLength
public static void setContentLength(javax.servlet.http.HttpServletResponse rsp,
int length)
setContentLength
public static void setContentLength(javax.servlet.http.HttpServletResponse rsp,
long length)
getCookies
public static javax.servlet.http.Cookie[] getCookies(Config config,
javax.servlet.http.HttpServletRequest req)
setCharacterEncoding
public static void setCharacterEncoding(javax.servlet.http.HttpServletResponse rsp,
String charset)
getHeader
public static String getHeader(javax.servlet.http.HttpServletRequest request,
String name,
String defaultValue)
getScriptName
public static String getScriptName(javax.servlet.http.HttpServletRequest req)
decode
public static String decode(String str,
String charset,
boolean force)
encode
public static String encode(String str,
String charset)
needEncoding
public static boolean needEncoding(String str,
boolean allowPlus)
needDecoding
public static boolean needDecoding(String str)
isThis
public static boolean isThis(javax.servlet.http.HttpServletRequest req,
String url)
isThis
public static boolean isThis(javax.servlet.http.HttpServletRequest req,
URL url)
Copyright © 2012 Railo