public class HttpTunnel extends Object
Constructor and Description |
---|
HttpTunnel() |
Modifier and Type | Method and Description |
---|---|
static byte[] |
convertFromHttp(DataInputStream is)
Remove the Http header data and return the actual message.
|
static byte[] |
convertFromHttp(DataInputStream is,
Object[] isCompressed)
Remove the Http header data and return the actual message.
|
static byte[] |
convertToHttpProxyConnect(String realHost,
int realPort,
String authString)
Add an Http request header to data.
|
static byte[] |
convertToHttpReply(byte[] raw)
Add an Http reply header to data.
|
static byte[] |
convertToHttpReply(byte[] raw,
boolean isCompressed)
Add an Http reply header to data.
|
static byte[] |
convertToHttpRequest(byte[] raw)
Add an Http request header to data.
|
static byte[] |
convertToHttpRequest(byte[] raw,
boolean isCompressed)
Add an Http request header to data.
|
static byte[] |
convertToHttpRequest(byte[] raw,
String realHost,
int realPort,
boolean isCompressed)
Add an Http request header to data, with or without proxy.
|
static ArrayList<String> |
getProxyReply(DataInputStream is)
Convert proxy server reply.
|
public static byte[] convertToHttpProxyConnect(String realHost, int realPort, String authString)
public static byte[] convertToHttpRequest(byte[] raw)
public static byte[] convertToHttpRequest(byte[] raw, boolean isCompressed)
public static byte[] convertToHttpRequest(byte[] raw, String realHost, int realPort, boolean isCompressed)
public static byte[] convertToHttpReply(byte[] raw)
public static byte[] convertToHttpReply(byte[] raw, boolean isCompressed)
public static ArrayList<String> getProxyReply(DataInputStream is) throws IOException
IOException
public static byte[] convertFromHttp(DataInputStream is) throws IOException
IOException
public static byte[] convertFromHttp(DataInputStream is, Object[] isCompressed) throws IOException
IOException
Phantom® and NetPhantom® are registered trademarks of Mindus SARL.
© © Mindus SARL, 2024. All rights reserved.