|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.hp.hpl.jena.joseki.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 in a particular langauge, such as RDQL. Normally, HTTP GET? is used for the query. If the queryStringLang is null or "", do a plain GET on the model. If the query string is large, then HTTP POST?query is used.
Field Summary | |
static int |
urlLimit
The definition of "large" queries |
Constructor Summary | |
HttpQuery(java.lang.String urlString)
Create a execution object for a whole model GET |
|
HttpQuery(java.lang.String urlString,
java.lang.String queryLang)
Create a execution object for a query. |
|
HttpQuery(java.net.URL url)
Create a execution object for a whole model GET |
|
HttpQuery(java.net.URL url,
java.lang.String queryLang)
Create a execution object for a query. |
Method Summary | |
void |
addParam(java.lang.String name)
Add a parameter to operation (no value associated with the name) |
void |
addParam(java.lang.String name,
java.lang.String value)
Add a parameter to the operation |
com.hp.hpl.jena.rdf.model.Model |
exec()
Execute the operation |
int |
getResponseCode()
Return the results from the last execution |
java.lang.String |
getResponseMessage()
Return the results from the last execution |
void |
setForcePOST()
Force the use of HTTP POST for the query operation |
void |
setParam(java.lang.String name,
java.lang.String value)
Set a parameter to the operation |
java.lang.String |
toString()
|
boolean |
usesPOST()
Return whether this request will go by GET or POST |
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(java.lang.String urlString)
urlString
- The modelpublic HttpQuery(java.net.URL url)
url
- The modelpublic HttpQuery(java.net.URL url, java.lang.String queryLang)
url
- The modelqueryLang
- The query languagepublic HttpQuery(java.lang.String urlString, java.lang.String queryLang)
urlString
- The modelqueryLang
- The query languageMethod Detail |
public void setParam(java.lang.String name, java.lang.String value)
name
- Name of the parametervalue
- Value - May be null to indicate none - the name still goes.public void addParam(java.lang.String name, java.lang.String value)
name
- Name of the parametervalue
- Value - May be null to indicate none - the name still goes.public void addParam(java.lang.String name)
name
- Name of the parameterpublic boolean usesPOST()
public void setForcePOST()
public int getResponseCode()
public java.lang.String getResponseMessage()
public com.hp.hpl.jena.rdf.model.Model exec() throws HttpException
HttpException
public java.lang.String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |