Package net.webpdf.wsclient.openapi
Class ServerConfigConnector
- java.lang.Object
-
- net.webpdf.wsclient.openapi.ServerConfigConnector
-
public class ServerConfigConnector extends Object
A [connector](https://tomcat.apache.org/tomcat-9.0-doc/config/http.html) defines the properties of a port the server can be accessed by.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classServerConfigConnector.CompressionEnumSpecifies whether to apply GZIP compression to the message to save bandwidthstatic classServerConfigConnector.ProtocolEnumThe protocol to use for a connector
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_ADDRESSstatic StringJSON_PROPERTY_COMPRESSIBLE_MIME_TYPEstatic StringJSON_PROPERTY_COMPRESSIONstatic StringJSON_PROPERTY_COMPRESSION_MIN_SIZEstatic StringJSON_PROPERTY_CONFIGURATIONstatic StringJSON_PROPERTY_ENABLEDstatic StringJSON_PROPERTY_PORTstatic StringJSON_PROPERTY_PROTOCOLstatic StringJSON_PROPERTY_PROXYstatic StringJSON_PROPERTY_SSL
-
Constructor Summary
Constructors Constructor Description ServerConfigConnector()
-
Method Summary
-
-
-
Field Detail
-
JSON_PROPERTY_ADDRESS
public static final String JSON_PROPERTY_ADDRESS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_COMPRESSIBLE_MIME_TYPE
public static final String JSON_PROPERTY_COMPRESSIBLE_MIME_TYPE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_COMPRESSION
public static final String JSON_PROPERTY_COMPRESSION
- See Also:
- Constant Field Values
-
JSON_PROPERTY_COMPRESSION_MIN_SIZE
public static final String JSON_PROPERTY_COMPRESSION_MIN_SIZE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_CONFIGURATION
public static final String JSON_PROPERTY_CONFIGURATION
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ENABLED
public static final String JSON_PROPERTY_ENABLED
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PORT
public static final String JSON_PROPERTY_PORT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PROTOCOL
public static final String JSON_PROPERTY_PROTOCOL
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PROXY
public static final String JSON_PROPERTY_PROXY
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SSL
public static final String JSON_PROPERTY_SSL
- See Also:
- Constant Field Values
-
-
Method Detail
-
address
public ServerConfigConnector address(String address)
-
getAddress
@Nullable public @Nullable String getAddress()
The IP address to which the port should listen.- Returns:
- address
-
setAddress
public void setAddress(String address)
-
compressibleMimeType
public ServerConfigConnector compressibleMimeType(String compressibleMimeType)
-
getCompressibleMimeType
@Nullable public @Nullable String getCompressibleMimeType()
Selects the MIME Types of message contents, that may be compressed via GZIP compression.- Returns:
- compressibleMimeType
-
setCompressibleMimeType
public void setCompressibleMimeType(String compressibleMimeType)
-
compression
public ServerConfigConnector compression(ServerConfigConnector.CompressionEnum compression)
-
getCompression
@Nullable public @Nullable ServerConfigConnector.CompressionEnum getCompression()
Specifies whether to apply GZIP compression to the message to save bandwidth. * off = disable compression. * on = allow compression, which causes text data to be compressed. * force = forces compression in all cases.- Returns:
- compression
-
setCompression
public void setCompression(ServerConfigConnector.CompressionEnum compression)
-
compressionMinSize
public ServerConfigConnector compressionMinSize(Integer compressionMinSize)
-
getCompressionMinSize
@Nullable public @Nullable Integer getCompressionMinSize()
Sets the minimum amount of bytes a message must reach before GZIP compression shall be applied.- Returns:
- compressionMinSize
-
setCompressionMinSize
public void setCompressionMinSize(Integer compressionMinSize)
-
_configuration
public ServerConfigConnector _configuration(ServerConfigConnectorConfiguration _configuration)
-
getConfiguration
@Nullable public @Nullable ServerConfigConnectorConfiguration getConfiguration()
Get _configuration- Returns:
- _configuration
-
setConfiguration
public void setConfiguration(ServerConfigConnectorConfiguration _configuration)
-
enabled
public ServerConfigConnector enabled(Boolean enabled)
-
getEnabled
@Nullable public @Nullable Boolean getEnabled()
When set to true this connector is active and may be used to connect to the server.- Returns:
- enabled
-
setEnabled
public void setEnabled(Boolean enabled)
-
port
public ServerConfigConnector port(Integer port)
-
getPort
@Nullable public @Nullable Integer getPort()
The port the connector is listening to. minimum: 1- Returns:
- port
-
setPort
public void setPort(Integer port)
-
protocol
public ServerConfigConnector protocol(ServerConfigConnector.ProtocolEnum protocol)
-
getProtocol
@Nullable public @Nullable ServerConfigConnector.ProtocolEnum getProtocol()
The protocol to use for a connector. * HTTP/1.1 = Non blocking java NIO connector. * HTTP/2.0 = Non blocking java NIO2 connector. * AJP/1.3 = The APR/native connector.- Returns:
- protocol
-
setProtocol
public void setProtocol(ServerConfigConnector.ProtocolEnum protocol)
-
proxy
public ServerConfigConnector proxy(ServerConfigProxy proxy)
-
getProxy
@Nullable public @Nullable ServerConfigProxy getProxy()
Get proxy- Returns:
- proxy
-
setProxy
public void setProxy(ServerConfigProxy proxy)
-
ssl
public ServerConfigConnector ssl(ServerConfigSSL ssl)
-
getSsl
@Nullable public @Nullable ServerConfigSSL getSsl()
Get ssl- Returns:
- ssl
-
setSsl
public void setSsl(ServerConfigSSL ssl)
-
-