public class WebClientConfig
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
forwardedHost
The forwarded host
|
private java.lang.String |
forwardedProto
The http/https protocol used by the forwarded host
|
private java.lang.String |
host
The direct host assigned to launch the spawned web client
|
private int |
port
The direct port assigned for the spawned web client
|
private java.util.concurrent.atomic.AtomicLong |
sessionsCounter
Number of sessions opened using this web client.
|
private java.lang.String |
uuid
web client id
|
private java.lang.String |
webRoot
The web root prefix for all resources of the web client
|
Constructor and Description |
---|
WebClientConfig() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getForwardedHost()
Gets the forwarded host.
|
java.lang.String |
getForwardedProto()
Gets the forwarded host protocol.
|
java.lang.String |
getHost()
The host on which this web client is running
|
int |
getPort()
Gets the web client port number.
|
java.util.concurrent.atomic.AtomicLong |
getSessionsCounter()
Counts sessions number opened by this web client.
|
java.lang.String |
getUuid()
Returns a web client unique identifier.
|
java.lang.String |
getWebRoot()
Gets the web client root.
|
void |
setForwardedHost(java.lang.String forwardedHost)
Sets the forwarded host.
|
void |
setForwardedProto(java.lang.String forwardedProto)
Sets the forwarded host protocol
|
void |
setHost(java.lang.String host)
Sets the web client host.
|
void |
setPort(int port)
Sets the web client port number.
|
void |
setSessionsCounter(java.util.concurrent.atomic.AtomicLong sessionsCounter)
Sets the current session counter that is used by this web client.
|
void |
setUuid(java.lang.String uuid)
Sets a web client unique identifier.
|
void |
setWebRoot(java.lang.String webRoot)
Sets the web client root
|
private java.util.concurrent.atomic.AtomicLong sessionsCounter
private java.lang.String uuid
private java.lang.String host
private int port
private java.lang.String webRoot
private java.lang.String forwardedHost
private java.lang.String forwardedProto
public java.lang.String getUuid()
public void setUuid(java.lang.String uuid)
uuid
- A unique identifierpublic java.lang.String getHost()
public int getPort()
public java.lang.String getWebRoot()
public java.lang.String getForwardedHost()
public java.lang.String getForwardedProto()
public void setHost(java.lang.String host)
host
- The host on which this web client is runningpublic void setPort(int port)
port
- The web client port numberpublic void setWebRoot(java.lang.String webRoot)
webRoot
- The web client rootpublic void setForwardedHost(java.lang.String forwardedHost)
forwardedHost
- The forwarded hostpublic void setForwardedProto(java.lang.String forwardedProto)
forwardedProto
- The forwarded host protocolpublic java.util.concurrent.atomic.AtomicLong getSessionsCounter()
public void setSessionsCounter(java.util.concurrent.atomic.AtomicLong sessionsCounter)
sessionsCounter
- The current session counter