public class Cookie extends Object implements HttpReqRespInterceptor
Modifier and Type | Field and Description |
---|---|
protected boolean |
debug |
protected Map<String,String> |
map |
Modifier and Type | Method and Description |
---|---|
void |
afterConnect(Request request,
HttpURLConnection conn) |
void |
afterResponse(Request request,
HttpURLConnection conn,
Response response) |
void |
beforeConnect(Request request) |
String |
get(String name) |
void |
parse(String str) |
Cookie |
remove(String name) |
Cookie |
set(String name,
String value) |
void |
setDebug(boolean debug) |
int |
size() |
String |
toJson() |
String |
toString() |
public Cookie()
public Cookie(String s)
public void parse(String str)
public void beforeConnect(Request request)
beforeConnect
in interface HttpReqRespInterceptor
public void afterConnect(Request request, HttpURLConnection conn)
afterConnect
in interface HttpReqRespInterceptor
public void afterResponse(Request request, HttpURLConnection conn, Response response)
afterResponse
in interface HttpReqRespInterceptor
public String toJson()
public int size()
public void setDebug(boolean debug)
Copyright © 2017. All rights reserved.