public final class Config
extends java.lang.Object
| Constructor and Description |
|---|
Config()
Creates a new configuration for a standalone server.
|
Config(java.lang.String resource)
Instantiates a new Configuration with the given resource
|
| Modifier and Type | Method and Description |
|---|---|
java.net.URI |
getServerForwardURI()
Gets server forward URI.
|
java.lang.String |
getServerInfo() |
int |
getServerPort()
Gets server port.
|
Config |
withProperty(java.lang.String key,
java.lang.String value)
Fluent API for setting a property.
|
Config |
withServerForwardURI(java.lang.String uri)
If the server acts like a proxy you set the URI to the forwardded
CUPS server here.
|
Config |
withServerPort(int port)
Fluent API for setting the server port.
|
public Config()
public Config(java.lang.String resource)
resource - the resource, e.g. "j4cups/proxy.properties"public Config withProperty(java.lang.String key, java.lang.String value)
key - the keyvalue - the valuepublic Config withServerPort(int port)
port - the portpublic int getServerPort()
public Config withServerForwardURI(java.lang.String uri)
uri - the URI where requests are forwardedpublic java.net.URI getServerForwardURI()
public java.lang.String getServerInfo()
Copyright © 2018–2020. All rights reserved.