Class HttpServerConf
- java.lang.Object
-
- io.streamthoughts.azkarra.streams.config.HttpServerConf
-
- Direct Known Subclasses:
InternalHttpServerConf
public class HttpServerConf extends Object
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
HttpServerConf(HttpServerConf conf)
Creates a newHttpServerConf
instance.protected
HttpServerConf(String listener, Integer port, Map<String,Object> overrides, Conf originals)
Creates a newHttpServerConf
instance.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static HttpServerConf
with(Conf conf)
static HttpServerConf
with(String listener, int port)
HttpServerConf
withConfig(String key, Object value)
HttpServerConf
withListener(String listener)
Sets the http server listener.HttpServerConf
withPort(int port)
Sets the http server port.
-
-
-
Constructor Detail
-
HttpServerConf
protected HttpServerConf(HttpServerConf conf)
Creates a newHttpServerConf
instance.- Parameters:
conf
- aHttpServerConf
instance.
-
-
Method Detail
-
with
public static HttpServerConf with(Conf conf)
-
with
public static HttpServerConf with(String listener, int port)
-
withPort
public HttpServerConf withPort(int port)
Sets the http server port.- Parameters:
port
- the http port.- Returns:
- a new
HttpServerConf
instance.
-
withListener
public HttpServerConf withListener(String listener)
Sets the http server listener.- Parameters:
listener
- the http listener.- Returns:
- a new
HttpServerConf
instance.
-
withConfig
public HttpServerConf withConfig(String key, Object value)
-
-