public class NettyUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
PROXY_ALIAS |
| Modifier and Type | Method and Description |
|---|---|
static void |
addViaHeader(io.netty.handler.codec.http.HttpMessage msg,
String alias) |
static io.netty.handler.codec.http.FullHttpResponse |
connectionEstablished() |
static io.netty.handler.codec.http.FullHttpResponse |
createResponse(io.netty.handler.codec.http.HttpResponseStatus status,
String body) |
static io.netty.handler.codec.http.FullHttpResponse |
createResponse(int status,
String body) |
static void |
createSelfSignedCertificate(File cert,
File key) |
static void |
fixHeadersForProxy(io.netty.handler.codec.http.HttpRequest request) |
static void |
flushAndClose(io.netty.channel.Channel ch) |
static SSLContext |
getSslContext(File keyStoreFile) |
static File |
initKeyStore(File keyStoreFile) |
static StringUtils.Pair |
parseUriIntoUrlBaseAndPath(String rawUri) |
static io.netty.handler.codec.http.FullHttpResponse |
transform(io.netty.handler.codec.http.FullHttpResponse original,
String body) |
public static final String PROXY_ALIAS
public static void flushAndClose(io.netty.channel.Channel ch)
public static SSLContext getSslContext(File keyStoreFile)
public static io.netty.handler.codec.http.FullHttpResponse createResponse(int status,
String body)
public static io.netty.handler.codec.http.FullHttpResponse createResponse(io.netty.handler.codec.http.HttpResponseStatus status,
String body)
public static io.netty.handler.codec.http.FullHttpResponse transform(io.netty.handler.codec.http.FullHttpResponse original,
String body)
public static final io.netty.handler.codec.http.FullHttpResponse connectionEstablished()
public static void fixHeadersForProxy(io.netty.handler.codec.http.HttpRequest request)
public static void addViaHeader(io.netty.handler.codec.http.HttpMessage msg,
String alias)
public static StringUtils.Pair parseUriIntoUrlBaseAndPath(String rawUri)
Copyright © 2020. All rights reserved.