public interface IRoute extends IResource
| 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.
|
addLabel, getAnnotation, getAnnotations, getCapabilities, getCreationTimeStamp, getLabels, getMetadata, getName, getNamespace, getNamespaceName, getProject, getResourceVersion, isAnnotatedWith, removeAnnotation, setAnnotationaccept, getCapability, supportsgetApiVersiontoJson, toJsonString getHost()
void setHost(String host)
host - hostname to useString getPath()
void setPath(String path)
path - route pathString getServiceName()
void setServiceName(String serviceName)
serviceName - Name of the service this route should lead to.ITLSConfig getTLSConfig()
ITLSConfig createTLSConfig()
String getURL()
ITargetPort getPort()
ITargetPort createPort()
Copyright © 2019 Red Hat, Inc. All Rights Reserved.