public class UrlWrapper<T> extends CloneSupport<UrlWrapper<T>> implements Wrapper<T>, ILogObject, IMapObject<String,Object>
HttpWrapper
,
Serialized FormModifier and Type | Field and Description |
---|---|
static Integer |
URL_NO_OPERATION |
static Integer |
URL_REDIRECT |
static Integer |
URL_REFRESH |
Modifier and Type | Method and Description |
---|---|
UrlWrapper<T> |
data(T data) |
static <T> UrlWrapper<T> |
get()
初始化
|
static <T> UrlWrapper<T> |
get(T data) |
T |
getData() |
int |
getType() |
String |
getUrl() |
static <T> UrlWrapper<T> |
redirect()
重定向页面
|
static <T> UrlWrapper<T> |
redirect(String url) |
static <T> UrlWrapper<T> |
redirect(String url,
T data) |
static <T> UrlWrapper<T> |
refresh()
刷新页面
|
static <T> UrlWrapper<T> |
refresh(T data) |
void |
setData(T data) |
void |
setType(int type) |
void |
setUrl(String url) |
String |
toLogString()
转为日志
|
Map<String,Object> |
toMap()
转为 map
|
String |
toString() |
UrlWrapper<T> |
type(int type) |
UrlWrapper<T> |
url(String url) |
clone
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
toJsonString
asMap
public static final Integer URL_NO_OPERATION
public static final Integer URL_REFRESH
public static final Integer URL_REDIRECT
public static <T> UrlWrapper<T> get()
public static <T> UrlWrapper<T> get(T data)
public static <T> UrlWrapper<T> refresh()
public static <T> UrlWrapper<T> refresh(T data)
public static <T> UrlWrapper<T> redirect()
public static <T> UrlWrapper<T> redirect(String url)
public static <T> UrlWrapper<T> redirect(String url, T data)
public UrlWrapper<T> url(String url)
public UrlWrapper<T> type(int type)
public UrlWrapper<T> data(T data)
public void setUrl(String url)
public void setType(int type)
public void setData(T data)
public String getUrl()
public int getType()
public T getData()
public String toLogString()
ILogObject
toLogString
in interface ILogObject
public Map<String,Object> toMap()
IMapObject
toMap
in interface IMapObject<String,Object>
Copyright © 2024. All rights reserved.