public class WebClientConfig
extends java.lang.Object
implements java.io.Externalizable
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 |
javaDebuggerPort
The java debugger port
|
private int |
jmxAgentPort
The JMX agent port
|
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()
Default constructor
|
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 |
getJavaDebuggerPort()
Gets the java debugger port.
|
int |
getJmxAgentPort()
Gets the jmx agent port.
|
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 |
readExternal(java.io.ObjectInput in)
Replacement for the default object reading method.
|
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 |
setJavaDebuggerPort(int javaDebuggerPort)
Sets the java debugger port.
|
void |
setJmxAgentPort(int jmxAgentPort)
Sets the jmx agent port.
|
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
|
void |
writeExternal(java.io.ObjectOutput out)
Replacement for the default object writing method.
|
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
private int javaDebuggerPort
private int jmxAgentPort
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 int getJavaDebuggerPort()
public void setJavaDebuggerPort(int javaDebuggerPort)
javaDebuggerPort
- The java debugger port to setpublic int getJmxAgentPort()
public void setJmxAgentPort(int jmxAgentPort)
jmxAgentPort
- The jmx agent port to setpublic 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 counterpublic void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
out
- The output destination to which fields will be saved.java.io.IOException
- In case of I/O errors.public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
in
- Input source from which fields will be restored.java.io.IOException
- In case of I/O errors.java.lang.ClassNotFoundException
- If payload can't be instantiated.