|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface HttpChannel
HTTP abstraction layer
| Nested Class Summary | |
|---|---|
static interface |
HttpChannel.Response
HTTP Chanel's response |
| Method Summary | |
|---|---|
void |
addHeader(String name,
String value)
Adds a new HTTP header |
HttpChannel.Response |
send()
Sends the HTTP request. |
void |
setAccept(String value)
Sets the HTTP Accept header |
void |
setConnectionTimeout(int timeout)
Sets the connection timeout |
void |
setContentType(String value)
Sets the HTTP Content-Type header |
void |
setHeader(String name,
String value)
Sets a HTTP header, overriding any existing one |
void |
setSocketTimeout(int timeout)
Sets the socket timeout |
void |
writeEntityWith(org.codegist.crest.io.http.HttpEntityWriter httpEntityWriter)
Sets the HTTP entity writer to use |
| Method Detail |
|---|
void setSocketTimeout(int timeout)
throws IOException
timeout - the socket timeout
IOException
void setConnectionTimeout(int timeout)
throws IOException
timeout - the connection timeout
IOException
void addHeader(String name,
String value)
throws IOException
name - the HTTP header namevalue - the HTTP header value
IOException
void setHeader(String name,
String value)
throws IOException
name - the HTTP header namevalue - the HTTP header value
IOException
void setContentType(String value)
throws IOException
value - the HTTP Content-Type header value
IOException
void setAccept(String value)
throws IOException
value - the HTTP Accept header value
IOException
void writeEntityWith(org.codegist.crest.io.http.HttpEntityWriter httpEntityWriter)
throws IOException
httpEntityWriter - the HTTP entity writer to use
IOException
HttpChannel.Response send()
throws IOException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||