|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.hp.hpl.jena.sparql.engine.http.Params
org.dllearner.kb.sparql.HttpQuery
public class HttpQuery
Create an execution object for performing a query on a model over HTTP. This is the main protocol engine for HTTP query. There are higher level classes for doing a query and presenting the results in an API fashion. If the query string is large, then HTTP POST is used.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.hp.hpl.jena.sparql.engine.http.Params |
|---|
com.hp.hpl.jena.sparql.engine.http.Params.Pair |
| Field Summary | |
|---|---|
static int |
urlLimit
The definition of "large" queries |
| Constructor Summary | |
|---|---|
HttpQuery(String serviceURL)
Create a execution object for a whole model GET |
|
HttpQuery(URL url)
Create a execution object for a whole model GET |
|
| Method Summary | |
|---|---|
InputStream |
exec()
Execute the operation |
HttpURLConnection |
getConnection()
|
void |
setAccept(String contentType)
Set the content type (Accept header) for the results |
void |
setBasicAuthentication(String user,
char[] password)
|
void |
setForcePOST()
Force the use of HTTP POST for the query operation |
void |
setTimeOut(int timeOut)
|
String |
toString()
|
boolean |
usesPOST()
Return whether this request will go by GET or POST |
| Methods inherited from class com.hp.hpl.jena.sparql.engine.http.Params |
|---|
addParam, addParam, containsParam, count, getValue, getValues, httpString, merge, names, pairs, remove |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static int urlLimit
| Constructor Detail |
|---|
public HttpQuery(String serviceURL)
serviceURL - The modelpublic HttpQuery(URL url)
url - The model| Method Detail |
|---|
public void setTimeOut(int timeOut)
public HttpURLConnection getConnection()
public void setAccept(String contentType)
public void setBasicAuthentication(String user,
char[] password)
public boolean usesPOST()
public void setForcePOST()
public InputStream exec()
throws com.hp.hpl.jena.sparql.engine.http.QueryExceptionHTTP
com.hp.hpl.jena.sparql.engine.http.QueryExceptionHTTPpublic String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||