public class DriveServiceLocator extends Object
| Constructor and Description |
|---|
DriveServiceLocator() |
| Modifier and Type | Method and Description |
|---|---|
String |
getBaseHost()
Base host name or
null if base should be obtained from a request. |
String |
getServiceHost(String requestHost)
Return host name for given request URI.
|
String |
getServiceLink(String context,
String requestURI)
Compile service host name from given request's host, optionally taking in account context.
|
boolean |
isRedirect(String requestHost)
Answers whether the request (to given host) should be redirected to its contextual link.
|
public String getBaseHost()
null if base should be obtained from a request. This method can be
overridden for context depended locators.Stringpublic String getServiceLink(String context, String requestURI)
isRedirect(String).public final boolean isRedirect(String requestHost)
getServiceLink(String, String).true if request should be redirected, false otherwise.Copyright © 2003–2016 eXo Platform SAS. All rights reserved.