protected Optional < Boolean > isMethodAllowed ( String method ) { if ( allowedMethods . isEmpty ( ) ) { return Optional . empty ( ) ; } return Optional . of ( allowedMethods . contains ( method ) ) ; }
Shows whether the server has indicated that a specific HTTP method is currently allowed .