@NotThreadSafe public class HTTPMethod extends Object
| Constructor and Description |
|---|
HTTPMethod(ucar.nc2.util.net.HTTPSession.Methods m) |
HTTPMethod(ucar.nc2.util.net.HTTPSession.Methods m,
HTTPSession session,
String url) |
HTTPMethod(ucar.nc2.util.net.HTTPSession.Methods m,
String url) |
public HTTPMethod(ucar.nc2.util.net.HTTPSession.Methods m)
throws HTTPException
HTTPExceptionpublic HTTPMethod(ucar.nc2.util.net.HTTPSession.Methods m,
String url)
throws HTTPException
HTTPExceptionpublic HTTPMethod(ucar.nc2.util.net.HTTPSession.Methods m,
HTTPSession session,
String url)
throws HTTPException
HTTPExceptionpublic int execute(String url) throws HTTPException
HTTPExceptionpublic int execute()
throws HTTPException
HTTPExceptionpublic void close()
public void setContext(org.apache.http.protocol.HttpContext cxt)
public org.apache.http.protocol.HttpContext getContext()
public int getStatusCode()
public String getStatusLine()
public String getRequestLine()
public String getPath()
public boolean canHoldContent()
public InputStream getResponseBodyAsStream()
public InputStream getResponseAsStream()
public byte[] getResponseAsBytes(int maxbytes)
public byte[] getResponseAsBytes()
public String getResponseAsString()
public void setMethodHeaders(List<org.apache.http.Header> headers) throws HTTPException
HTTPExceptionpublic void setRequestHeader(String name, String value) throws HTTPException
HTTPExceptionpublic void setRequestHeader(org.apache.http.Header h)
throws HTTPException
HTTPExceptionpublic org.apache.http.Header getRequestHeader(String name)
public org.apache.http.Header[] getRequestHeaders()
public org.apache.http.Header getResponseHeader(String name)
public org.apache.http.Header[] getResponseHeaders()
public org.apache.http.params.HttpParams getMethodParameters()
public void setRequestContentAsString(String content) throws HTTPException
HTTPExceptionpublic String getCharSet()
public String getName()
public String getURL()
public String getProtocolVersion()
public String getSoTimeout()
public String getStatusText()
public void setFollowRedirects(boolean tf)
public String getResponseCharSet()
public HTTPSession getSession()
public boolean isSessionLocal()
public org.apache.http.HttpRequest getMethod()
public boolean hasStreamOpen()
public boolean isClosed()
Copyright © 1999–2015 UCAR/Unidata. All rights reserved.