public interface ResourceApiVersionBehaviourManager
API Version routing can issue a WarningHeader
if 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.
Modifier and Type | Method and Description |
---|---|
DefaultVersionBehaviour |
getDefaultVersionBehaviour()
Gets the default routing behaviour to use when the request does not
contain the Accept-API-Version header.
|
boolean |
isWarningEnabled()
Returns
true if warning headers should be set on the response if
no Accept-API-Version header is present on the request. |
void |
setDefaultVersionBehaviour(DefaultVersionBehaviour behaviour)
Sets the default routing behaviour to use when the request does not
contain the Accept-API-Version header.
|
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.
|
void setWarningEnabled(boolean warningEnabled)
warningEnabled
- true
if warning headers should be set.boolean isWarningEnabled()
true
if warning headers should be set on the response if
no Accept-API-Version header is present on the request.true
if warning headers should be set.void setDefaultVersionBehaviour(DefaultVersionBehaviour behaviour)
behaviour
- The default routing behaviour when no
Accept-API-Version header is present on the request.DefaultVersionBehaviour getDefaultVersionBehaviour()
Copyright © 2010-2018, ForgeRock All Rights Reserved.