Package org.n52.shetland.util
Class HTTP
- java.lang.Object
-
- org.n52.shetland.util.HTTP
-
public final class HTTP extends Object
TODO JavaDoc
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static byte[]get(URI uri)static voidget(URI uri, OutputStream out)static StringgetAsString(URI uri)static byte[]post(URI uri, byte[] bytes)static voidpost(URI uri, byte[] bytes, OutputStream out)
-
-
-
Method Detail
-
getAsString
public static String getAsString(URI uri) throws IOException
- Throws:
IOException
-
get
public static byte[] get(URI uri) throws IOException
- Throws:
IOException
-
get
public static void get(URI uri, OutputStream out) throws IOException
- Throws:
IOException
-
post
public static byte[] post(URI uri, byte[] bytes) throws IOException
- Throws:
IOException
-
post
public static void post(URI uri, byte[] bytes, OutputStream out) throws IOException
- Throws:
IOException
-
-