@Singleton public class WebUdfSource extends Object implements UdfSourceAssembly
import 'net.hasor.dataql.fx.web.WebUdfSource' as webData;UdfSourceAssembly.TypeUdfMap, UdfSourceAssembly.UdfName, UdfSourceAssembly.UdfParams| 构造器和说明 |
|---|
WebUdfSource() |
| 限定符和类型 | 方法和说明 |
|---|---|
static boolean |
addHeader(String headerName,
String value)
添加 Header
|
static boolean |
addHeaderAll(Map<String,String> headerMap)
批量添加 HeaderMap
|
static boolean |
cleanSession()
删除所有Key
|
static Map<String,List<String>> |
cookieArrayMap()
cookieMap,Value是数组
|
static Map<String,String> |
cookieMap()
cookieMap
|
static String |
getCookie(String cookieName)
获取Cookie
|
static List<String> |
getCookieArray(String cookieName)
获取Cookie数组形态
|
static String |
getHeader(String headerName)
获取 Header
|
static List<String> |
getHeaderArray(String headerName)
获取所有名字相同的 Header
|
static Object |
getSession(String key)
获取Session
|
static Map<String,List<String>> |
headerArrayMap()
headerMap,Value是数组
|
static Map<String,String> |
headerMap()
headerMap
|
static Object |
jsonBody()
jsonBody
|
static boolean |
removeCookie(String cookieName)
删除 Cookie
|
static boolean |
removeSession(String key)
删除Session
|
static String |
sessionId()
Session ID.
|
static boolean |
sessionInvalidate()
Invalidates this session then unbinds any objects bound to it.
|
static List<String> |
sessionKeys()
sessionKeys
|
static long |
sessionLastAccessedTime()
返回客户端发送与之关联的请求的最后一次时间.
|
static boolean |
setHeader(String headerName,
String value)
设置 Header
|
static boolean |
setHeaderAll(Map<String,String> headerMap)
批量设置 HeaderMap
|
static Object |
setSession(String key,
Object newValue)
设置Session
|
static boolean |
storeCookie(String cookieName,
String value,
int maxAge)
存储 Cookie
|
static boolean |
storeCookieAll(Map<String,String> cookieMap,
int maxAge)
批量设置 Cookie
|
static boolean |
tempCookie(String cookieName,
String value)
临时 Cookie。
|
static boolean |
tempCookieAll(Map<String,String> cookieMap)
批量设置临时 Cookie。
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetPredicate, getSupplier, getUdfResourcepublic static Object jsonBody()
public static boolean tempCookie(String cookieName, String value)
public static boolean tempCookieAll(Map<String,String> cookieMap)
public static boolean storeCookie(String cookieName, String value, int maxAge)
public static boolean storeCookieAll(Map<String,String> cookieMap, int maxAge)
public static boolean removeCookie(String cookieName)
public static boolean removeSession(String key)
public static boolean cleanSession()
public static boolean sessionInvalidate()
public static String sessionId()
public static long sessionLastAccessedTime()
Copyright © 2020. All rights reserved.