Package org.ametys.plugins.site.token
Class GetTokenExtensionPoint
- java.lang.Object
-
- org.ametys.runtime.plugin.component.AbstractLogEnabled
-
- org.ametys.runtime.plugin.component.AbstractThreadSafeComponentExtensionPoint<GetToken>
-
- org.ametys.plugins.site.token.GetTokenExtensionPoint
-
- All Implemented Interfaces:
LogEnabled,ExtensionPoint<GetToken>,Disposable,Initializable,Component,Contextualizable,Serviceable,ThreadSafe
public class GetTokenExtensionPoint extends AbstractThreadSafeComponentExtensionPoint<GetToken>
Extension point for components extracting token from an incoming request.
-
-
Field Summary
Fields Modifier and Type Field Description static StringROLEAvalon Role-
Fields inherited from class org.ametys.runtime.plugin.component.AbstractThreadSafeComponentExtensionPoint
_cocoonManager, _context, _manager
-
-
Constructor Summary
Constructors Constructor Description GetTokenExtensionPoint()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetToken(Request request)Returns the token from the request.StringgetTokenContext(Request request)Returns the token context from the request.-
Methods inherited from class org.ametys.runtime.plugin.component.AbstractThreadSafeComponentExtensionPoint
addComponent, addExtension, contextualize, dispose, getExtension, getExtensionsIds, hasExtension, initialize, initializeExtensions, service
-
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
-
-
-
Constructor Detail
-
GetTokenExtensionPoint
public GetTokenExtensionPoint()
-
-
Method Detail
-
getToken
public String getToken(Request request)
Returns the token from the request.- Parameters:
request- the incoming request.- Returns:
- the extracted token, if any.
-
getTokenContext
public String getTokenContext(Request request)
Returns the token context from the request.- Parameters:
request- the incoming request.- Returns:
- the extracted token context, if any.
-
-