public class Route extends KubernetesResource implements IRoute
ANNOTATIONS, APIVERSION, CREATION_TIMESTAMP, KIND, LABELS, METADATA_NAME, NAME, NAMESPACE, OBJECTS, PORTS, PROTOCOL, TYPE, VALUE
Constructor and Description |
---|
Route(org.jboss.dmr.ModelNode node,
IClient client,
Map<String,String[]> propertyKeys) |
Modifier and Type | Method and Description |
---|---|
String |
getHost()
Retrieves the externally available hostname that can be used to access
service.
|
String |
getPath()
Retrieves the path that the router watches for, to route traffic for to
the service.
|
String |
getServiceName()
Retrieves the name of the service this route leads to.
|
ITLSConfig |
getTLSConfig()
Retrieves the TLS configuration of this route.
|
String |
getURL()
Return a URL representation of this route
|
void |
setHost(String host)
Sets the externally available hostname that can be used to access
service.
|
void |
setPath(String path)
Sets the path that the router watches for, to route traffic for to the
service.
|
void |
setServiceName(String serviceName)
Sets the name of the service this route should lead to.
|
accept, addLabel, asBoolean, asInt, asInt, asMap, asString, asString, equals, get, get, getAnnotation, getAnnotations, getApiVersion, getCapabilities, getCapability, getClient, getCreationTimeStamp, getEnvMap, getKind, getLabels, getModifiableCapabilities, getName, getNamespace, getNode, getPath, getProject, hashCode, isAnnotatedWith, refresh, set, set, set, set, set, set, set, setAnnotation, setEnvMap, setName, setNamespace, supports, toJson, toJson, toPrettyString, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
addLabel, getAnnotation, getAnnotations, getApiVersion, getCapabilities, getCreationTimeStamp, getKind, getLabels, getName, getNamespace, getProject, isAnnotatedWith, setAnnotation, toJson, toJson
accept, getCapability, supports
public String getHost()
IRoute
public void setHost(String host)
IRoute
public String getPath()
IRoute
public void setPath(String path)
IRoute
public String getServiceName()
IRoute
getServiceName
in interface IRoute
public void setServiceName(String serviceName)
IRoute
setServiceName
in interface IRoute
serviceName
- Name of the service this route should lead to.public ITLSConfig getTLSConfig()
IRoute
getTLSConfig
in interface IRoute
Copyright © 2016 Red Hat, Inc. All rights reserved.