public class ApplicationRedirectServiceImpl extends DefaultComponent implements ApplicationDefinitionService
Modifier and Type | Class and Description |
---|---|
static class |
ApplicationRedirectServiceImpl.ExtensionPoint |
lastModified
Constructor and Description |
---|
ApplicationRedirectServiceImpl() |
Modifier and Type | Method and Description |
---|---|
protected String |
buildRedirectUrl(javax.servlet.http.HttpServletRequest request,
String... uris) |
String |
getApplicationBaseURI(javax.servlet.http.HttpServletRequest request) |
String |
getApplicationBaseURL(javax.servlet.http.HttpServletRequest request)
Return the root path of the web application where the request must be redirected according request context.
|
protected String |
getBaseURL(javax.servlet.http.HttpServletRequest request) |
String |
getLoginURL(javax.servlet.http.HttpServletRequest request)
Return the login url according request context.
|
String |
getLogoutURL(javax.servlet.http.HttpServletRequest request)
Return the logout url according request context.This is the absolute URL with the protocole, the servername, ...
|
protected Path |
getNuxeoRelativeContextPath() |
protected RequestHandlerDescriptor |
getRequestHandlerByName(String name) |
List<String> |
getUnAuthenticatedURLPrefix()
Return the list of relative unprotected URI for all application
|
List<String> |
getUnAuthenticatedURLPrefix(javax.servlet.http.HttpServletRequest request)
Return the list of relative unprotected URI for this request
|
boolean |
isResourceURL(javax.servlet.http.HttpServletRequest request)
Return true if the given request is a resource for the application this request match
|
protected void |
registerApplication(ApplicationDefinitionDescriptor appDescriptor,
String componentName) |
void |
registerContribution(Object contribution,
String extensionPoint,
ComponentInstance contributor) |
protected void |
registerRequestHandler(RequestHandlerDescriptor rhd,
String componentName) |
activate, applicationStarted, deactivate, getAdapter, getApplicationStartedOrder, getLastModified, registerExtension, setLastModified, setModifiedNow, unregisterContribution, unregisterExtension
public ApplicationRedirectServiceImpl()
protected String buildRedirectUrl(javax.servlet.http.HttpServletRequest request, String... uris)
protected Path getNuxeoRelativeContextPath()
public void registerContribution(Object contribution, String extensionPoint, ComponentInstance contributor)
registerContribution
in class DefaultComponent
protected void registerRequestHandler(RequestHandlerDescriptor rhd, String componentName)
protected void registerApplication(ApplicationDefinitionDescriptor appDescriptor, String componentName)
protected String getBaseURL(javax.servlet.http.HttpServletRequest request)
protected RequestHandlerDescriptor getRequestHandlerByName(String name)
public String getApplicationBaseURL(javax.servlet.http.HttpServletRequest request)
ApplicationDefinitionService
getApplicationBaseURL
in interface ApplicationDefinitionService
public String getApplicationBaseURI(javax.servlet.http.HttpServletRequest request)
getApplicationBaseURI
in interface ApplicationDefinitionService
public String getLoginURL(javax.servlet.http.HttpServletRequest request)
ApplicationDefinitionService
getLoginURL
in interface ApplicationDefinitionService
public String getLogoutURL(javax.servlet.http.HttpServletRequest request)
ApplicationDefinitionService
getLogoutURL
in interface ApplicationDefinitionService
public List<String> getUnAuthenticatedURLPrefix(javax.servlet.http.HttpServletRequest request)
ApplicationDefinitionService
getUnAuthenticatedURLPrefix
in interface ApplicationDefinitionService
public List<String> getUnAuthenticatedURLPrefix()
ApplicationDefinitionService
getUnAuthenticatedURLPrefix
in interface ApplicationDefinitionService
public boolean isResourceURL(javax.servlet.http.HttpServletRequest request)
ApplicationDefinitionService
isResourceURL
in interface ApplicationDefinitionService
Copyright © 2015 Nuxeo SA. All rights reserved.