public class RemoteHttpConfig
extends java.lang.Object
implements com.exalead.util.Checkable, java.io.Serializable
Modifier and Type | Class and Description |
---|---|
static class |
RemoteHttpConfig.Protocol |
Modifier and Type | Field and Description |
---|---|
static java.lang.String[] |
__protocol_values |
static int |
DEFAULT_PORT |
static int |
DEFAULT_POWER |
static java.lang.String |
DEFAULT_PROTOCOL |
java.lang.String |
host |
int |
port |
int |
power |
java.lang.String |
protocol |
Constructor and Description |
---|
RemoteHttpConfig() |
RemoteHttpConfig(RemoteHttpConfig o)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
void |
check(boolean deep,
java.lang.String errorContext)
Checks this RemoteHttpConfig.
|
static RemoteHttpConfig |
fromString(java.lang.String s)
String representation of this RemoteHttpConfig.
|
java.lang.String |
getHost()
Hostname of the remote security source
|
int |
getPort()
Port of the remote security source
|
int |
getPower()
Priority of this host
|
java.lang.String |
getProtocol()
Protocol of the remote security source host
|
RemoteHttpConfig.Protocol |
getProtocolAsEnum()
Protocol of the remote security source host
|
static boolean |
isA(java.lang.String str,
RemoteHttpConfig.Protocol item) |
static boolean |
isOneOf(java.lang.String str,
RemoteHttpConfig.Protocol... items) |
RemoteHttpConfig |
makeCopy()
Creates and returns a deep copy of this RemoteHttpConfig.
|
static RemoteHttpConfig |
readFrom(java.io.InputStream is)
Read this RemoteHttpConfig from an XML fragment.
|
void |
setHost(java.lang.String host)
Hostname of the remote security source
|
void |
setPort(int port)
Port of the remote security source
|
void |
setPower(int power)
Priority of this host
|
void |
setProtocol(RemoteHttpConfig.Protocol item)
Protocol of the remote security source host
|
void |
setProtocol(java.lang.String protocol)
Protocol of the remote security source host
|
java.lang.String |
toString()
String representation of this RemoteHttpConfig.
|
RemoteHttpConfig |
withHost(java.lang.String host) |
RemoteHttpConfig |
withPort(int port) |
RemoteHttpConfig |
withPort(java.lang.Integer port) |
RemoteHttpConfig |
withPower(int power) |
RemoteHttpConfig |
withPower(java.lang.Integer power) |
RemoteHttpConfig |
withProtocol(java.lang.String protocol) |
void |
writeTo(java.io.OutputStream os)
Write this RemoteHttpConfig as an XML fragment
|
public java.lang.String protocol
public static final java.lang.String DEFAULT_PROTOCOL
public static final java.lang.String[] __protocol_values
public java.lang.String host
public int port
public static final int DEFAULT_PORT
public int power
public static final int DEFAULT_POWER
public RemoteHttpConfig()
public RemoteHttpConfig(RemoteHttpConfig o)
public static boolean isA(java.lang.String str, RemoteHttpConfig.Protocol item)
public static boolean isOneOf(java.lang.String str, RemoteHttpConfig.Protocol... items)
public void setProtocol(RemoteHttpConfig.Protocol item)
public RemoteHttpConfig.Protocol getProtocolAsEnum()
public void setProtocol(java.lang.String protocol)
public java.lang.String getProtocol()
public RemoteHttpConfig withProtocol(java.lang.String protocol)
public void setHost(java.lang.String host)
public java.lang.String getHost()
public RemoteHttpConfig withHost(java.lang.String host)
public void setPort(int port)
public int getPort()
public RemoteHttpConfig withPort(int port)
public RemoteHttpConfig withPort(java.lang.Integer port)
public void setPower(int power)
public int getPower()
public RemoteHttpConfig withPower(int power)
public RemoteHttpConfig withPower(java.lang.Integer power)
public RemoteHttpConfig makeCopy()
public static RemoteHttpConfig readFrom(java.io.InputStream is) throws javax.xml.bind.JAXBException
javax.xml.bind.JAXBException
public void writeTo(java.io.OutputStream os) throws javax.xml.bind.JAXBException, java.io.IOException
javax.xml.bind.JAXBException
java.io.IOException
public static RemoteHttpConfig fromString(java.lang.String s) throws javax.xml.bind.JAXBException, java.io.UnsupportedEncodingException
javax.xml.bind.JAXBException
java.io.UnsupportedEncodingException
public java.lang.String toString()
toString
in class java.lang.Object
public void check(boolean deep, java.lang.String errorContext) throws com.exalead.util.TypedException
check
in interface com.exalead.util.Checkable
com.exalead.util.TypedException
Copyright © 2021 Dassault Systèmes, All Rights Reserved.