org.eaglei.services.repository
Class ProviderUtils

java.lang.Object
  extended by org.eaglei.services.repository.ProviderUtils

public class ProviderUtils
extends java.lang.Object

Author:
Daniela Bourges-Waldegg

Constructor Summary
ProviderUtils()
           
 
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 cases of http request/response
static java.lang.String getStringFromInputStream(java.io.InputStream in)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProviderUtils

public ProviderUtils()
Method Detail

getStringFromInputStream

public static java.lang.String getStringFromInputStream(java.io.InputStream in)
                                                 throws java.io.IOException
Throws:
java.io.IOException

getHttpResponse

public static java.lang.String getHttpResponse(org.apache.commons.httpclient.HttpClient client,
                                               org.apache.commons.httpclient.HttpMethod method)
                                        throws RepositoryProviderException
Convenience method for dealing with the most general cases of http request/response

Parameters:
client -
method -
Returns:
the string returned by the repo
Throws:
org.apache.commons.httpclient.HttpException
java.io.IOException
RepositoryProviderException
NotFoundException
UnauthorizedException
ConflictException
InternalServerErrorException


Copyright © 2009-2011 Eagle-I. All Rights Reserved.