Class HTTPUtility
- java.lang.Object
-
- org.gcube.informationsystem.resourceregistry.api.rest.httputils.HTTPUtility
-
public class HTTPUtility extends Object
- Author:
- Luca Frosini (ISTI - CNR)
-
-
Constructor Summary
Constructors Constructor Description HTTPUtility()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description protected static <C> AvailableInAnotherContextExceptiongetElementAvailableInAnotherContextException(Class<C> clz)protected static <C> NotFoundExceptiongetElementNotFoundException(Class<C> clz)static <C> CgetResponse(Class<C> clz, HttpURLConnection connection)protected static StringBuildergetStringBuilder(InputStream inputStream)
-
-
-
Method Detail
-
getElementNotFoundException
protected static <C> NotFoundException getElementNotFoundException(Class<C> clz) throws NotFoundException, ResourceRegistryException
-
getElementAvailableInAnotherContextException
protected static <C> AvailableInAnotherContextException getElementAvailableInAnotherContextException(Class<C> clz)
-
getStringBuilder
protected static StringBuilder getStringBuilder(InputStream inputStream) throws IOException
- Throws:
IOException
-
getResponse
public static <C> C getResponse(Class<C> clz, HttpURLConnection connection) throws Exception
- Throws:
Exception
-
-