Java Doc for HTTPClient.java in  » RSS-RDF » sesame » org » openrdf » http » client » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » RSS RDF » sesame » org.openrdf.http.client 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.openrdf.http.client.HTTPClient

HTTPClient
public class HTTPClient (Code)
Low-level HTTP client for Sesame's HTTP protocol. Methods correspond directly to the functionality offered by the protocol.
author:
   Herko ter Horst
author:
   Arjohn Kampman


Field Summary
final  Loggerlogger
    

Constructor Summary
public  HTTPClient()
    

Method Summary
protected  voidcheckRepositoryURL()
    
protected  voidcheckServerURL()
    
public  voidclearNamespaces()
    
protected  booleangetBoolean(HttpMethod method)
    
public  TupleQueryResultgetContextIDs()
    
public  voidgetContextIDs(TupleQueryResultHandler handler)
    
protected  ErrorInfogetErrorInfo(HttpMethod method)
    
final protected  HttpClientgetHttpClient()
    
public  StringgetNamespace(String prefix)
    
public  TupleQueryResultgetNamespaces()
    
public  voidgetNamespaces(TupleQueryResultHandler handler)
    
public  BooleanQueryResultFormatgetPreferredBooleanQueryResultFormat()
     Gets the preferred BooleanQueryResultFormat for encoding boolean query results.
public  RDFFormatgetPreferredRDFFormat()
     Gets the preferred RDFFormat for encoding RDF documents.
public  TupleQueryResultFormatgetPreferredTupleQueryResultFormat()
     Gets the preferred TupleQueryResultFormat for encoding tuple query results.
protected  HttpMethodgetQueryMethod(QueryLanguage ql, String query, Dataset dataset, boolean includeInferred, Binding... bindings)
    
protected  List<NameValuePair>getQueryMethodParameters(QueryLanguage ql, String query, Dataset dataset, boolean includeInferred, Binding... bindings)
    
protected  voidgetRDF(HttpMethod method, RDFHandler handler, boolean requireContext)
    
public  TupleQueryResultgetRepositoryList()
    
public  voidgetRepositoryList(TupleQueryResultHandler handler)
    
public  StringgetRepositoryURL()
    
protected  StringgetResponseMIMEType(HttpMethod method)
     Gets the MIME type specified in the response headers of the supplied method, if any.
public  StringgetServerProtocol()
    
public  StringgetServerURL()
    
public  voidgetStatements(Resource subj, URI pred, Value obj, boolean includeInferred, RDFHandler handler, Resource... contexts)
    
protected  voidgetTupleQueryResult(HttpMethod method, TupleQueryResultHandler handler)
    
public  ValueFactorygetValueFactory()
    
final protected  voidreleaseConnection(HttpMethod method)
    
public  voidremoveNamespacePrefix(String prefix)
    
public  booleansendBooleanQuery(QueryLanguage ql, String query, Dataset dataset, boolean includeInferred, Binding... bindings)
    
public  GraphQueryResultsendGraphQuery(QueryLanguage ql, String query, Dataset dataset, boolean includeInferred, Binding... bindings)
    
public  voidsendGraphQuery(QueryLanguage ql, String query, Dataset dataset, boolean includeInferred, RDFHandler handler, Binding... bindings)
    
public  voidsendTransaction(Iterable<? extends TransactionOperation> txn)
    
public  TupleQueryResultsendTupleQuery(QueryLanguage ql, String query, Dataset dataset, boolean includeInferred, Binding... bindings)
    
public  voidsendTupleQuery(QueryLanguage ql, String query, Dataset dataset, boolean includeInferred, TupleQueryResultHandler handler, Binding... bindings)
    
final protected  voidsetDoAuthentication(HttpMethod method)
    
public  voidsetNamespacePrefix(String prefix, String name)
    
public  voidsetPreferredBooleanQueryResultFormat(BooleanQueryResultFormat format)
     Sets the preferred format for encoding boolean query results.
public  voidsetPreferredRDFFormat(RDFFormat format)
     Sets the preferred format for encoding RDF documents.
public  voidsetPreferredTupleQueryResultFormat(TupleQueryResultFormat format)
     Sets the preferred format for encoding tuple query results.
public  voidsetRepositoryID(String repositoryID)
    
public  voidsetRepositoryURL(String repositoryURL)
    
public  voidsetServerURL(String serverURL)
    
public  voidsetUsernameAndPassword(String username, String password)
     Set the username and password for authenication with the remote server.
public  voidsetValueFactory(ValueFactory valueFactory)
    
public  longsize(Resource... contexts)
    
public  voidupload(Reader contents, String baseURI, RDFFormat dataFormat, boolean overwrite, Resource... contexts)
    
public  voidupload(InputStream contents, String baseURI, RDFFormat dataFormat, boolean overwrite, Resource... contexts)
    
protected  voidupload(RequestEntity reqEntity, String baseURI, boolean overwrite, Resource... contexts)
    

Field Detail
logger
final Logger logger(Code)




Constructor Detail
HTTPClient
public HTTPClient()(Code)




Method Detail
checkRepositoryURL
protected void checkRepositoryURL()(Code)



checkServerURL
protected void checkServerURL()(Code)



clearNamespaces
public void clearNamespaces() throws IOException, RepositoryException, UnauthorizedException(Code)



getBoolean
protected boolean getBoolean(HttpMethod method) throws IOException, RepositoryException, MalformedQueryException, UnauthorizedException(Code)



getContextIDs
public TupleQueryResult getContextIDs() throws IOException, RepositoryException, UnauthorizedException(Code)



getContextIDs
public void getContextIDs(TupleQueryResultHandler handler) throws IOException, TupleQueryResultHandlerException, RepositoryException, UnauthorizedException(Code)



getErrorInfo
protected ErrorInfo getErrorInfo(HttpMethod method) throws RepositoryException(Code)



getHttpClient
final protected HttpClient getHttpClient()(Code)



getNamespace
public String getNamespace(String prefix) throws IOException, RepositoryException, UnauthorizedException(Code)



getNamespaces
public TupleQueryResult getNamespaces() throws IOException, RepositoryException, UnauthorizedException(Code)



getNamespaces
public void getNamespaces(TupleQueryResultHandler handler) throws IOException, TupleQueryResultHandlerException, RepositoryException, UnauthorizedException(Code)



getPreferredBooleanQueryResultFormat
public BooleanQueryResultFormat getPreferredBooleanQueryResultFormat()(Code)
Gets the preferred BooleanQueryResultFormat for encoding boolean query results. The preferred format, of null if no specific format ispreferred.



getPreferredRDFFormat
public RDFFormat getPreferredRDFFormat()(Code)
Gets the preferred RDFFormat for encoding RDF documents. The preferred format, of null if no specific format ispreferred.



getPreferredTupleQueryResultFormat
public TupleQueryResultFormat getPreferredTupleQueryResultFormat()(Code)
Gets the preferred TupleQueryResultFormat for encoding tuple query results. The preferred format, of null if no specific format ispreferred.



getQueryMethod
protected HttpMethod getQueryMethod(QueryLanguage ql, String query, Dataset dataset, boolean includeInferred, Binding... bindings)(Code)



getQueryMethodParameters
protected List<NameValuePair> getQueryMethodParameters(QueryLanguage ql, String query, Dataset dataset, boolean includeInferred, Binding... bindings)(Code)



getRDF
protected void getRDF(HttpMethod method, RDFHandler handler, boolean requireContext) throws IOException, RDFHandlerException, RepositoryException, MalformedQueryException, UnauthorizedException(Code)



getRepositoryList
public TupleQueryResult getRepositoryList() throws IOException, RepositoryException, UnauthorizedException(Code)



getRepositoryList
public void getRepositoryList(TupleQueryResultHandler handler) throws IOException, TupleQueryResultHandlerException, RepositoryException, UnauthorizedException(Code)



getRepositoryURL
public String getRepositoryURL()(Code)



getResponseMIMEType
protected String getResponseMIMEType(HttpMethod method) throws IOException(Code)
Gets the MIME type specified in the response headers of the supplied method, if any. For example, if the response headers contain Content-Type: application/xml;charset=UTF-8, this method will return application/xml as the MIME type.
Parameters:
  method - The method to get the reponse MIME type from. The response MIME type, or null if not available.



getServerProtocol
public String getServerProtocol() throws IOException, RepositoryException, UnauthorizedException(Code)



getServerURL
public String getServerURL()(Code)



getStatements
public void getStatements(Resource subj, URI pred, Value obj, boolean includeInferred, RDFHandler handler, Resource... contexts) throws IOException, RDFHandlerException, RepositoryException, UnauthorizedException(Code)



getTupleQueryResult
protected void getTupleQueryResult(HttpMethod method, TupleQueryResultHandler handler) throws IOException, TupleQueryResultHandlerException, RepositoryException, MalformedQueryException, UnauthorizedException(Code)



getValueFactory
public ValueFactory getValueFactory()(Code)



releaseConnection
final protected void releaseConnection(HttpMethod method)(Code)



removeNamespacePrefix
public void removeNamespacePrefix(String prefix) throws IOException, RepositoryException, UnauthorizedException(Code)



sendBooleanQuery
public boolean sendBooleanQuery(QueryLanguage ql, String query, Dataset dataset, boolean includeInferred, Binding... bindings) throws IOException, RepositoryException, MalformedQueryException, UnauthorizedException(Code)



sendGraphQuery
public GraphQueryResult sendGraphQuery(QueryLanguage ql, String query, Dataset dataset, boolean includeInferred, Binding... bindings) throws IOException, RepositoryException, MalformedQueryException, UnauthorizedException(Code)



sendGraphQuery
public void sendGraphQuery(QueryLanguage ql, String query, Dataset dataset, boolean includeInferred, RDFHandler handler, Binding... bindings) throws IOException, RDFHandlerException, RepositoryException, MalformedQueryException, UnauthorizedException(Code)



sendTransaction
public void sendTransaction(Iterable<? extends TransactionOperation> txn) throws IOException, RepositoryException, UnauthorizedException(Code)



sendTupleQuery
public TupleQueryResult sendTupleQuery(QueryLanguage ql, String query, Dataset dataset, boolean includeInferred, Binding... bindings) throws IOException, RepositoryException, MalformedQueryException, UnauthorizedException(Code)



sendTupleQuery
public void sendTupleQuery(QueryLanguage ql, String query, Dataset dataset, boolean includeInferred, TupleQueryResultHandler handler, Binding... bindings) throws IOException, TupleQueryResultHandlerException, RepositoryException, MalformedQueryException, UnauthorizedException(Code)



setDoAuthentication
final protected void setDoAuthentication(HttpMethod method)(Code)



setNamespacePrefix
public void setNamespacePrefix(String prefix, String name) throws IOException, RepositoryException, UnauthorizedException(Code)



setPreferredBooleanQueryResultFormat
public void setPreferredBooleanQueryResultFormat(BooleanQueryResultFormat format)(Code)
Sets the preferred format for encoding boolean query results. The BooleanQueryResultFormat.TEXT binary format is preferred by default.
Parameters:
  format - The preferred BooleanQueryResultFormat, or nullto indicate no specific format is preferred.



setPreferredRDFFormat
public void setPreferredRDFFormat(RDFFormat format)(Code)
Sets the preferred format for encoding RDF documents. The RDFFormat.TURTLE Turtle format is preferred by default.
Parameters:
  format - The preferred RDFFormat, or null to indicate nospecific format is preferred.



setPreferredTupleQueryResultFormat
public void setPreferredTupleQueryResultFormat(TupleQueryResultFormat format)(Code)
Sets the preferred format for encoding tuple query results. The TupleQueryResultFormat.BINARY binary format is preferred by default.
Parameters:
  format - The preferred TupleQueryResultFormat, or nullto indicate no specific format is preferred.



setRepositoryID
public void setRepositoryID(String repositoryID)(Code)



setRepositoryURL
public void setRepositoryURL(String repositoryURL)(Code)



setServerURL
public void setServerURL(String serverURL)(Code)



setUsernameAndPassword
public void setUsernameAndPassword(String username, String password)(Code)
Set the username and password for authenication with the remote server.
Parameters:
  username - the username
Parameters:
  password - the password



setValueFactory
public void setValueFactory(ValueFactory valueFactory)(Code)



size
public long size(Resource... contexts) throws IOException, RepositoryException, UnauthorizedException(Code)



upload
public void upload(Reader contents, String baseURI, RDFFormat dataFormat, boolean overwrite, Resource... contexts) throws IOException, RDFParseException, RepositoryException, UnauthorizedException(Code)



upload
public void upload(InputStream contents, String baseURI, RDFFormat dataFormat, boolean overwrite, Resource... contexts) throws IOException, RDFParseException, RepositoryException, UnauthorizedException(Code)



upload
protected void upload(RequestEntity reqEntity, String baseURI, boolean overwrite, Resource... contexts) throws IOException, RDFParseException, RepositoryException, UnauthorizedException(Code)



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.