Liferay 6.1.2-ce-ga3

com.liferay.portal.kernel.util
Class Http.Options

java.lang.Object
  extended by com.liferay.portal.kernel.util.Http.Options
Enclosing interface:
Http

public static class Http.Options
extends Object


Constructor Summary
Http.Options()
           
 
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()
           
 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 setPost(boolean post)
           
 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
 

Constructor Detail

Http.Options

public Http.Options()
Method Detail

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()

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)

setPost

public void setPost(boolean post)

setPut

public void setPut(boolean put)

setResponse

public void setResponse(Http.Response response)

Liferay 6.1.2-ce-ga3