@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
HTTPException
public HTTPMethod(ucar.nc2.util.net.HTTPSession.Methods m, String url) throws HTTPException
HTTPException
public HTTPMethod(ucar.nc2.util.net.HTTPSession.Methods m, HTTPSession session, String url) throws HTTPException
HTTPException
public int execute(String url) throws HTTPException
HTTPException
public int execute() throws HTTPException
HTTPException
public 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
HTTPException
public void setRequestHeader(String name, String value) throws HTTPException
HTTPException
public void setRequestHeader(org.apache.http.Header h) throws HTTPException
HTTPException
public 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
HTTPException
public 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–2014 UCAR/Unidata. All rights reserved.