org.eaglei.datatools.jena
Class ProviderUtils
java.lang.Object
org.eaglei.datatools.jena.ProviderUtils
public class ProviderUtils
- extends java.lang.Object
- Author:
- Daniela Bourges-Waldegg
|
Method Summary |
static java.lang.String |
getHttpResponse(org.apache.commons.httpclient.HttpClient client,
org.apache.commons.httpclient.HttpMethod method)
Convenience method for dealing with the most general case of http request/response expected status code is 200 and we can give a generic error message |
static java.lang.String |
getStringFromInputStream(java.io.InputStream in)
|
static void |
validateSession(org.eaglei.security.Session session)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ProviderUtils
public ProviderUtils()
getStringFromInputStream
public static java.lang.String getStringFromInputStream(java.io.InputStream in)
throws java.io.IOException
- Throws:
java.io.IOException
validateSession
public static void validateSession(org.eaglei.security.Session session)
throws EIDataToolsProviderException
- Throws:
EIDataToolsProviderException
getHttpResponse
public static java.lang.String getHttpResponse(org.apache.commons.httpclient.HttpClient client,
org.apache.commons.httpclient.HttpMethod method)
throws org.apache.commons.httpclient.HttpException,
java.io.IOException,
EIDataToolsProviderException
- Convenience method for dealing with the most general case of http request/response expected status code is 200 and we can give a generic error message
- Parameters:
client - method -
- Returns:
- the string returned by the repo
- Throws:
org.apache.commons.httpclient.HttpException
java.io.IOException
EIDataToolsProviderException
Copyright © 2009-2011 Eagle-I. All Rights Reserved.