Package org.forgerock.http.routing
Interface ResourceApiVersionBehaviourManager
-
public interface ResourceApiVersionBehaviourManagerImplementations of this interface will be responsible for maintaining the behaviour of API Version routing.API Version routing can issue a
WarningHeaderif no Accept-API-Version header is set on the request. In addition a default behaviour can be set to determine how the route will compare matching API Version routes.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DefaultVersionBehaviourgetDefaultVersionBehaviour()Gets the default routing behaviour to use when the request does not contain the Accept-API-Version header.booleanisWarningEnabled()Returnstrueif warning headers should be set on the response if no Accept-API-Version header is present on the request.voidsetDefaultVersionBehaviour(DefaultVersionBehaviour behaviour)Sets the default routing behaviour to use when the request does not contain the Accept-API-Version header.voidsetWarningEnabled(boolean warningEnabled)Sets if warning headers should be set on the response if no Accept-API-Version header is present on the request.
-
-
-
Method Detail
-
setWarningEnabled
void setWarningEnabled(boolean warningEnabled)
Sets if warning headers should be set on the response if no Accept-API-Version header is present on the request.- Parameters:
warningEnabled-trueif warning headers should be set.
-
isWarningEnabled
boolean isWarningEnabled()
Returnstrueif warning headers should be set on the response if no Accept-API-Version header is present on the request.- Returns:
trueif warning headers should be set.
-
setDefaultVersionBehaviour
void setDefaultVersionBehaviour(DefaultVersionBehaviour behaviour)
Sets the default routing behaviour to use when the request does not contain the Accept-API-Version header.- Parameters:
behaviour- The default routing behaviour when no Accept-API-Version header is present on the request.
-
getDefaultVersionBehaviour
DefaultVersionBehaviour getDefaultVersionBehaviour()
Gets the default routing behaviour to use when the request does not contain the Accept-API-Version header.- Returns:
- The default routing behaviour when no Accept-API-Version header is present on the request.
-
-