public class Route extends KubernetesResource implements IRoute
ANNOTATIONS, APIVERSION, CREATION_TIMESTAMP, FROM, GROUP, KIND, LABELS, METADATA, METADATA_NAME, METADATA_NAMESPACE, METADATA_RESOURCE_VERSION, METADATA_UID, NAME, NAMESPACE, OBJECTS, PORTS, PROTOCOL, RESOURCE_VERSION, TYPE, VALUE, VERBS, VERSION| Constructor and Description |
|---|
Route(org.jboss.dmr.ModelNode node,
IClient client,
Map<String,String[]> propertyKeys) |
| Modifier and Type | Method and Description |
|---|---|
ITargetPort |
createPort()
Create a target port if one is not defined or return the existing one
|
ITLSConfig |
createTLSConfig()
Create a tls config if one is not defined or return the existing one
|
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.
|
ITargetPort |
getPort()
Retrieves the target port of this route.
|
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, asBoolean, asInt, asInt, asMap, asSet, asString, asString, equals, get, get, getAnnotation, getAnnotations, getApiVersion, getCapabilities, getCapability, getClient, getCreationTimeStamp, getEnvMap, getKind, getLabels, getMetadata, getModifiableCapabilities, getName, getNamespace, getNamespaceName, getNode, getPath, getProject, getPropertyKeys, getResourceVersion, has, hashCode, isAnnotatedWith, refresh, removeAnnotation, set, set, set, set, set, set, set, set, set, setAnnotation, setEnvMap, setName, setNamespace, setNode, supports, toJson, toJson, toPrettyString, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddLabel, getAnnotation, getAnnotations, getCapabilities, getCreationTimeStamp, getLabels, getMetadata, getName, getNamespace, getNamespaceName, getProject, getResourceVersion, isAnnotatedWith, removeAnnotation, setAnnotationaccept, getCapability, supportsgetApiVersiontoJson, toJsonpublic String getHost()
IRoutepublic void setHost(String host)
IRoutepublic String getPath()
IRoutepublic void setPath(String path)
IRoutepublic String getServiceName()
IRoutegetServiceName in interface IRoutepublic void setServiceName(String serviceName)
IRoutesetServiceName in interface IRouteserviceName - Name of the service this route should lead to.public ITLSConfig getTLSConfig()
IRoutegetTLSConfig in interface IRoutepublic ITLSConfig createTLSConfig()
IRoutecreateTLSConfig in interface IRoutepublic ITargetPort getPort()
IRoutepublic ITargetPort createPort()
IRoutecreatePort in interface IRouteCopyright © 2020 Red Hat, Inc. All Rights Reserved.