Package org.smallmind.nutsnbolts.http
Class HttpPipe
- java.lang.Object
-
- org.smallmind.nutsnbolts.http.HttpPipe
-
public class HttpPipe extends Object
-
-
Constructor Summary
Constructors Constructor Description HttpPipe(HttpURLConnection urlConnection)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HttpPipeconnect()voiddoneReading()voiddoneWriting()intread(byte[] buffer)HttpPipesetRequestHeader(String key, String value)HttpPipewrite(String body)
-
-
-
Constructor Detail
-
HttpPipe
public HttpPipe(HttpURLConnection urlConnection) throws IOException
- Throws:
IOException
-
-
Method Detail
-
connect
public HttpPipe connect() throws IOException
- Throws:
IOException
-
write
public HttpPipe write(String body) throws IOException
- Throws:
IOException
-
doneWriting
public void doneWriting() throws IOException- Throws:
IOException
-
read
public int read(byte[] buffer) throws IOException- Throws:
IOException
-
doneReading
public void doneReading() throws IOException- Throws:
IOException
-
-