Package net.webpdf.wsclient.openapi
Class ApplicationConfigUrlConverterWebservice
- java.lang.Object
-
- net.webpdf.wsclient.openapi.ApplicationConfigUrlConverterWebservice
-
public class ApplicationConfigUrlConverterWebservice extends Object
Defines a set of options specific for the \"URL Converter\" web service.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classApplicationConfigUrlConverterWebservice.QueueModeEnumDefines how the size of the queue is determined.
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_ENABLEDstatic StringJSON_PROPERTY_INSTANCESstatic StringJSON_PROPERTY_MAX_LATENCYstatic StringJSON_PROPERTY_QUEUE_MODEstatic StringJSON_PROPERTY_QUEUE_SIZEstatic StringJSON_PROPERTY_TIMEOUTstatic StringJSON_PROPERTY_USER_AGENT
-
Constructor Summary
Constructors Constructor Description ApplicationConfigUrlConverterWebservice()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ApplicationConfigUrlConverterWebserviceenabled(Boolean enabled)booleanequals(Object o)@Nullable BooleangetEnabled()If enabled, then the web service is activated.@Nullable IntegergetInstances()Number of parallel instances (threads) for the web service.@Nullable IntegergetMaxLatency()Maximum allowed time in seconds for the execution of a web service request (job) before the request is canceled.@Nullable ApplicationConfigUrlConverterWebservice.QueueModeEnumgetQueueMode()Defines how the size of the queue is determined.@Nullable IntegergetQueueSize()Maximum number of waiting requests, before new requests are rejected.@Nullable IntegergetTimeout()Sets a timeout in seconds, that shall be used for the HTTP request to get the URL.@Nullable StringgetUserAgent()Sets the text for the user agent to send to the destination server from which the URL is to be retrieved.inthashCode()ApplicationConfigUrlConverterWebserviceinstances(Integer instances)ApplicationConfigUrlConverterWebservicemaxLatency(Integer maxLatency)ApplicationConfigUrlConverterWebservicequeueMode(ApplicationConfigUrlConverterWebservice.QueueModeEnum queueMode)ApplicationConfigUrlConverterWebservicequeueSize(Integer queueSize)voidsetEnabled(Boolean enabled)voidsetInstances(Integer instances)voidsetMaxLatency(Integer maxLatency)voidsetQueueMode(ApplicationConfigUrlConverterWebservice.QueueModeEnum queueMode)voidsetQueueSize(Integer queueSize)voidsetTimeout(Integer timeout)voidsetUserAgent(String userAgent)ApplicationConfigUrlConverterWebservicetimeout(Integer timeout)StringtoString()ApplicationConfigUrlConverterWebserviceuserAgent(String userAgent)
-
-
-
Field Detail
-
JSON_PROPERTY_ENABLED
public static final String JSON_PROPERTY_ENABLED
- See Also:
- Constant Field Values
-
JSON_PROPERTY_INSTANCES
public static final String JSON_PROPERTY_INSTANCES
- See Also:
- Constant Field Values
-
JSON_PROPERTY_MAX_LATENCY
public static final String JSON_PROPERTY_MAX_LATENCY
- See Also:
- Constant Field Values
-
JSON_PROPERTY_QUEUE_MODE
public static final String JSON_PROPERTY_QUEUE_MODE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_QUEUE_SIZE
public static final String JSON_PROPERTY_QUEUE_SIZE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TIMEOUT
public static final String JSON_PROPERTY_TIMEOUT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_USER_AGENT
public static final String JSON_PROPERTY_USER_AGENT
- See Also:
- Constant Field Values
-
-
Method Detail
-
enabled
public ApplicationConfigUrlConverterWebservice enabled(Boolean enabled)
-
getEnabled
@Nullable public @Nullable Boolean getEnabled()
If enabled, then the web service is activated.- Returns:
- enabled
-
setEnabled
public void setEnabled(Boolean enabled)
-
instances
public ApplicationConfigUrlConverterWebservice instances(Integer instances)
-
getInstances
@Nullable public @Nullable Integer getInstances()
Number of parallel instances (threads) for the web service. Defines the number of requests that can be executed in parallel before requests are queued. minimum: 1- Returns:
- instances
-
setInstances
public void setInstances(Integer instances)
-
maxLatency
public ApplicationConfigUrlConverterWebservice maxLatency(Integer maxLatency)
-
getMaxLatency
@Nullable public @Nullable Integer getMaxLatency()
Maximum allowed time in seconds for the execution of a web service request (job) before the request is canceled. If the time has expired, the execution is aborted and an error code is returned. minimum: 0- Returns:
- maxLatency
-
setMaxLatency
public void setMaxLatency(Integer maxLatency)
-
queueMode
public ApplicationConfigUrlConverterWebservice queueMode(ApplicationConfigUrlConverterWebservice.QueueModeEnum queueMode)
-
getQueueMode
@Nullable public @Nullable ApplicationConfigUrlConverterWebservice.QueueModeEnum getQueueMode()
Defines how the size of the queue is determined. With `AUTO`, it is calculated automatically by the server based on the number of configured instances.- Returns:
- queueMode
-
setQueueMode
public void setQueueMode(ApplicationConfigUrlConverterWebservice.QueueModeEnum queueMode)
-
queueSize
public ApplicationConfigUrlConverterWebservice queueSize(Integer queueSize)
-
getQueueSize
@Nullable public @Nullable Integer getQueueSize()
Maximum number of waiting requests, before new requests are rejected. If there are more requests than free instances, they are placed in the queue. If this maximum value is reached, further requests are rejected directly. This setting only applies if `queueMode` is set to `MANUAL`.- Returns:
- queueSize
-
setQueueSize
public void setQueueSize(Integer queueSize)
-
timeout
public ApplicationConfigUrlConverterWebservice timeout(Integer timeout)
-
getTimeout
@Nullable public @Nullable Integer getTimeout()
Sets a timeout in seconds, that shall be used for the HTTP request to get the URL.- Returns:
- timeout
-
setTimeout
public void setTimeout(Integer timeout)
-
userAgent
public ApplicationConfigUrlConverterWebservice userAgent(String userAgent)
-
getUserAgent
@Nullable public @Nullable String getUserAgent()
Sets the text for the user agent to send to the destination server from which the URL is to be retrieved.- Returns:
- userAgent
-
setUserAgent
public void setUserAgent(String userAgent)
-
-