Class HttpOp

java.lang.Object
org.apache.jena.http.HttpOp

public class HttpOp extends Object
This is a collection of convenience operations for HTTP requests, mostly in support of RDF handling and common, basic use cases for HTTP. It is not comprehensive. For more complicated requirements of HTTP, then the application can use HttpClient directly.

Authentication can be handled by supplying a HttpClient which has been built with an Authenticator or for challenge response (basic and digest) see AuthEnv.

Operations throw HttpException when the response is not 2xx, except for "httpGetString" and "httpPostRtnString" which return null for a 404 response.

Also supported:

  • GET and return a string
  • GET and return a JSON structure
See Also: