public class ApplicationRedirectServiceImpl extends DefaultComponent implements ApplicationDefinitionService
Modifier and Type | Class and Description |
---|---|
static class |
ApplicationRedirectServiceImpl.ExtensionPoint |
Constructor and Description |
---|
ApplicationRedirectServiceImpl() |
Modifier and Type | Method and Description |
---|---|
String |
getApplicationBaseURI(HttpServletRequest request) |
String |
getApplicationBaseURL(HttpServletRequest request)
Return the root path of the web application where the request must be
redirected according request context.
|
String |
getLoginURL(HttpServletRequest request)
Return the login url according request context.
|
String |
getLogoutURL(HttpServletRequest request)
Return the logout url according request context.This is the absolute URL
with the protocole, the servername, ...
|
List<String> |
getUnAuthenticatedURLPrefix()
Return the list of relative unprotected URI for all application
|
List<String> |
getUnAuthenticatedURLPrefix(HttpServletRequest request)
Return the list of relative unprotected URI for this request
|
boolean |
isResourceURL(HttpServletRequest request)
Return true if the given request is a resource for the application this
request match
|
void |
registerContribution(Object contribution,
String extensionPoint,
ComponentInstance contributor) |
activate, applicationStarted, deactivate, getAdapter, getApplicationStartedOrder, getLastModified, registerExtension, setLastModified, unregisterContribution, unregisterExtension
public void registerContribution(Object contribution, String extensionPoint, ComponentInstance contributor) throws Exception
registerContribution
in class DefaultComponent
Exception
public String getApplicationBaseURL(HttpServletRequest request)
ApplicationDefinitionService
getApplicationBaseURL
in interface ApplicationDefinitionService
public String getApplicationBaseURI(HttpServletRequest request)
getApplicationBaseURI
in interface ApplicationDefinitionService
public String getLoginURL(HttpServletRequest request)
ApplicationDefinitionService
getLoginURL
in interface ApplicationDefinitionService
public String getLogoutURL(HttpServletRequest request)
ApplicationDefinitionService
getLogoutURL
in interface ApplicationDefinitionService
public List<String> getUnAuthenticatedURLPrefix(HttpServletRequest request)
ApplicationDefinitionService
getUnAuthenticatedURLPrefix
in interface ApplicationDefinitionService
public List<String> getUnAuthenticatedURLPrefix()
ApplicationDefinitionService
getUnAuthenticatedURLPrefix
in interface ApplicationDefinitionService
public boolean isResourceURL(HttpServletRequest request)
ApplicationDefinitionService
isResourceURL
in interface ApplicationDefinitionService
Copyright © 2013 Nuxeo SA. All Rights Reserved.