|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.actf.util.httpproxy.util.HTTPUtil
public class HTTPUtil
Utility class for HTTP session and messages
| Constructor Summary | |
|---|---|
HTTPUtil()
|
|
| Method Summary | |
|---|---|
static IHTTPResponseMessage |
createHTTPResponseInMemoryMessage(IHTTPResponseMessage base,
byte[] body)
Create new IHTTPResponseMessage instance |
static IHTTPResponseMessage |
createHTTPResponseInMemoryMessage(long serial,
byte[] version,
byte[] statusCode,
byte[] reasonPhrase,
byte[] body)
Create new IHTTPResponseMessage instance |
static IHTTPResponsePushbackMessage |
createHTTPResponsePushbackMessage(IHTTPResponseMessage base,
int pushbackBufferSize)
Create new IHTTPResponsePushbackMessage instance from base
message |
static void |
sendFailedToClient(IHTTPProxyConnection fClient,
IHTTPRequestMessage request)
Send 404 (not found) error to client |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HTTPUtil()
| Method Detail |
|---|
public static void sendFailedToClient(IHTTPProxyConnection fClient,
IHTTPRequestMessage request)
throws InterruptedException,
IOException
fClient - target IHTTPProxyConnectionrequest - target IHTTPRequestMessage
InterruptedException
IOException
public static IHTTPResponseMessage createHTTPResponseInMemoryMessage(IHTTPResponseMessage base,
byte[] body)
IHTTPResponseMessage instance
base - the base IHTTPResponseMessage. New instance will be
generated by copying the base message.body - message body of the new instance
IHTTPResponseMessage instance
public static IHTTPResponseMessage createHTTPResponseInMemoryMessage(long serial,
byte[] version,
byte[] statusCode,
byte[] reasonPhrase,
byte[] body)
IHTTPResponseMessage instance
serial - serial of the messageversion - version of the messagestatusCode - status code of the messagereasonPhrase - reason phrase of the messagebody - message body
IHTTPResponseMessage instance
public static IHTTPResponsePushbackMessage createHTTPResponsePushbackMessage(IHTTPResponseMessage base,
int pushbackBufferSize)
IHTTPResponsePushbackMessage instance from base
message
base - the base IHTTPResponseMessage. New instance will be
generated by copying the base message.pushbackBufferSize - pushback buffer size of the new
IHTTPResponsePushbackMessage instance
IHTTPResponsePushbackMessage instance
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||