Package com.liferay.portal.kernel.util
Class Http.Options
Object
com.liferay.portal.kernel.util.Http.Options
- Enclosing interface:
- Http
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addFilePart
(String name, String fileName, byte[] value, String contentType, String charSet) void
void
addInputStreamPart
(String name, String inputStreamName, InputStream inputStream, String contentType) void
getAuth()
getBody()
javax.servlet.http.Cookie[]
getParts()
int
boolean
isDelete()
boolean
boolean
isGet()
boolean
isHead()
boolean
boolean
isPatch()
boolean
isPost()
boolean
isPut()
void
void
void
void
void
setCookies
(javax.servlet.http.Cookie[] cookies) void
setCookieSpec
(Http.CookieSpec cookieSpec) 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
setInputStreamParts
(List<Http.InputStreamPart> inputStreamParts) void
setLocation
(String location) void
setMethod
(Http.Method method) void
setNormalizeURI
(boolean normalizeURI) void
void
setPatch
(boolean patch) void
setPost
(boolean post) void
setPut
(boolean put) void
setResponse
(Http.Response response) void
setTimeout
(int timeout)
-
Constructor Details
-
Options
public Options()
-
-
Method Details
-
addFilePart
-
addHeader
-
addInputStreamPart
public void addInputStreamPart(String name, String inputStreamName, InputStream inputStream, String contentType) -
addPart
-
getAuth
-
getBody
-
getCookies
public javax.servlet.http.Cookie[] getCookies() -
getCookieSpec
-
getFileParts
-
getHeader
-
getHeaders
-
getInputStreamParts
-
getLocation
-
getMethod
-
getParts
-
getResponse
-
getTimeout
public int getTimeout() -
isDelete
public boolean isDelete() -
isFollowRedirects
public boolean isFollowRedirects() -
isGet
public boolean isGet() -
isHead
public boolean isHead() -
isNormalizeURI
public boolean isNormalizeURI() -
isPatch
public boolean isPatch() -
isPost
public boolean isPost() -
isPut
public boolean isPut() -
setAuth
-
setAuth
-
setBody
-
setBody
-
setCookies
public void setCookies(javax.servlet.http.Cookie[] cookies) -
setCookieSpec
-
setDelete
public void setDelete(boolean delete) -
setFileParts
-
setFollowRedirects
public void setFollowRedirects(boolean followRedirects) -
setHead
public void setHead(boolean head) -
setHeaders
-
setInputStreamParts
-
setLocation
-
setMethod
-
setNormalizeURI
public void setNormalizeURI(boolean normalizeURI) -
setParts
-
setPatch
public void setPatch(boolean patch) -
setPost
public void setPost(boolean post) -
setPut
public void setPut(boolean put) -
setResponse
-
setTimeout
public void setTimeout(int timeout)
-