com.liferay.portal.kernel.util
Class Http.Options
java.lang.Object
com.liferay.portal.kernel.util.Http.Options
- Enclosing interface:
- Http
public static class Http.Options
- extends Object
Method Summary |
void |
addFilePart(String name,
String fileName,
byte[] value,
String contentType,
String charSet)
|
void |
addHeader(String name,
String value)
|
void |
addPart(String name,
String value)
|
Http.Auth |
getAuth()
|
Http.Body |
getBody()
|
javax.servlet.http.Cookie[] |
getCookies()
|
List<Http.FilePart> |
getFileParts()
|
Map<String,String> |
getHeaders()
|
String |
getLocation()
|
Http.Method |
getMethod()
|
Map<String,String> |
getParts()
|
PortletRequest |
getPortletRequest()
|
String |
getProgressId()
|
Http.Response |
getResponse()
|
boolean |
isDelete()
|
boolean |
isFollowRedirects()
|
boolean |
isGet()
|
boolean |
isHead()
|
boolean |
isPost()
|
boolean |
isPut()
|
void |
setAuth(Http.Auth auth)
|
void |
setAuth(String host,
int port,
String realm,
String username,
String password)
|
void |
setBody(Http.Body body)
|
void |
setBody(String content,
String contentType,
String charset)
|
void |
setCookies(javax.servlet.http.Cookie[] cookies)
|
void |
setDelete(boolean delete)
|
void |
setFileParts(List<Http.FilePart> fileParts)
|
void |
setFollowRedirects(boolean followRedirects)
|
void |
setHead(boolean head)
|
void |
setHeaders(Map<String,String> headers)
|
void |
setLocation(String location)
|
void |
setParts(Map<String,String> parts)
|
void |
setPortletRequest(PortletRequest portletRequest)
|
void |
setPost(boolean post)
|
void |
setProgressId(String progressId)
|
void |
setPut(boolean put)
|
void |
setResponse(Http.Response response)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Http.Options
public Http.Options()
addFilePart
public void addFilePart(String name,
String fileName,
byte[] value,
String contentType,
String charSet)
addHeader
public void addHeader(String name,
String value)
addPart
public void addPart(String name,
String value)
getAuth
public Http.Auth getAuth()
getBody
public Http.Body getBody()
getCookies
public javax.servlet.http.Cookie[] getCookies()
getFileParts
public List<Http.FilePart> getFileParts()
getHeaders
public Map<String,String> getHeaders()
getLocation
public String getLocation()
getMethod
public Http.Method getMethod()
getParts
public Map<String,String> getParts()
getPortletRequest
public PortletRequest getPortletRequest()
getProgressId
public String getProgressId()
getResponse
public Http.Response getResponse()
isDelete
public boolean isDelete()
isFollowRedirects
public boolean isFollowRedirects()
isGet
public boolean isGet()
isHead
public boolean isHead()
isPost
public boolean isPost()
isPut
public boolean isPut()
setAuth
public void setAuth(Http.Auth auth)
setAuth
public void setAuth(String host,
int port,
String realm,
String username,
String password)
setBody
public void setBody(Http.Body body)
setBody
public void setBody(String content,
String contentType,
String charset)
setCookies
public void setCookies(javax.servlet.http.Cookie[] cookies)
setDelete
public void setDelete(boolean delete)
setFileParts
public void setFileParts(List<Http.FilePart> fileParts)
setFollowRedirects
public void setFollowRedirects(boolean followRedirects)
setHead
public void setHead(boolean head)
setHeaders
public void setHeaders(Map<String,String> headers)
setLocation
public void setLocation(String location)
setParts
public void setParts(Map<String,String> parts)
setPortletRequest
public void setPortletRequest(PortletRequest portletRequest)
setPost
public void setPost(boolean post)
setProgressId
public void setProgressId(String progressId)
setPut
public void setPut(boolean put)
setResponse
public void setResponse(Http.Response response)