public interface HttpApplicationLocation
Modifier and Type | Method and Description |
---|---|
String |
getClusterHostName()
Obtains the name of the host for the application within the cluster.
|
int |
getClusterHttpPort()
The cluster may be behind a load balancer and the application may be
running on a different port than expected by the client.
|
int |
getClusterHttpsPort()
The cluster may be behind a load balancer and the application may be
running on a different port than expected by the client.
|
String |
getContextPath()
Obtains the URI prefix to the application.
|
String |
getDomain()
Obtains the domain for the application.
|
int |
getHttpPort()
Obtains the HTTP port.
|
int |
getHttpsPort()
Obtains the HTTPS port.
|
String |
transformToApplicationCanonicalPath(String requestUri)
Transforms the
HttpRequest request URI to a canonical path
relative to the application root. |
String |
transformToClientPath(String applicationPath,
boolean isSecure)
Transforms the application path to a client path.
|
String getDomain()
Obtains the domain for the application.
This is as the client will see the application.
int getHttpPort()
Obtains the HTTP port.
This is as the client will see the application.
int getHttpsPort()
Obtains the HTTPS port.
This is as the client will see the application.
String getContextPath()
null
if no
context path for the application.String getClusterHostName()
int getClusterHttpPort()
int getClusterHttpsPort()
String transformToApplicationCanonicalPath(String requestUri) throws InvalidHttpRequestUriException, IncorrectHttpRequestContextPathException
HttpRequest
request URI to a canonical path
relative to the application root. This will strip off the domain, port
and context path.requestUri
- Request URI from the HttpRequest
.InvalidHttpRequestUriException
- Should the HttpRequest
request URI be invalid.IncorrectHttpRequestContextPathException
- Should the HttpRequest
request URI have the incorrect
context path for the application.String transformToClientPath(String applicationPath, boolean isSecure)
applicationPath
- Path relative to the application root.isSecure
- Indicates if the resulting client path is to be secure. In
other words to use the HTTPS protocol.Copyright © 2005–2016. All rights reserved.