public final class GatewayHttpServer extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
GatewayHttpServer.Config |
| Modifier and Type | Method and Description |
|---|---|
static GatewayHttpServer |
onPort(int port,
ServerStream serverStream) |
void |
start()
Starts http server.
|
void |
stop()
Stops http server.
|
GatewayHttpServer |
withAccessControlAllowMethods(String accessControlAllowMethods) |
GatewayHttpServer |
withAccessControlAllowOrigin(String accessControlAllowOrigin) |
GatewayHttpServer |
withAccessControlMaxAge(int accessControlMaxAge) |
GatewayHttpServer |
withCorsEnabled(boolean corsEnabled) |
GatewayHttpServer |
withMaxFrameLength(int maxFrameLength) |
GatewayHttpServer |
withServerBootstrap(io.netty.bootstrap.ServerBootstrap serverBootstrap) |
GatewayHttpServer |
withSsl(SSLContext sslContext) |
public static GatewayHttpServer onPort(int port, ServerStream serverStream)
public GatewayHttpServer withServerBootstrap(io.netty.bootstrap.ServerBootstrap serverBootstrap)
public GatewayHttpServer withSsl(SSLContext sslContext)
public GatewayHttpServer withMaxFrameLength(int maxFrameLength)
public GatewayHttpServer withCorsEnabled(boolean corsEnabled)
public GatewayHttpServer withAccessControlAllowOrigin(String accessControlAllowOrigin)
public GatewayHttpServer withAccessControlAllowMethods(String accessControlAllowMethods)
public GatewayHttpServer withAccessControlMaxAge(int accessControlMaxAge)
public void start()
public void stop()
Copyright © 2015–2018. All rights reserved.