private Response process ( MultivaluedMap < String , String > parameters ) { // Call Authlete's /api/auth/introspection/standard API. StandardIntrospectionResponse response = getApiCaller ( ) . callStandardIntrospection ( parameters ) ; // 'action' in the response denotes the next action which // this service implementation should take. Action action = response . getAction ( ) ; // The content of the response to the client application. String content = response . getResponseContent ( ) ; // Dispatch according to the action. switch ( action ) { case INTERNAL_SERVER_ERROR : // 500 Internal Server Error return ResponseUtil . internalServerError ( content ) ; case BAD_REQUEST : // 400 Bad Request return ResponseUtil . badRequest ( content ) ; case OK : // 200 OK return ResponseUtil . ok ( content ) ; default : // This never happens. throw getApiCaller ( ) . unknownAction ( "/api/auth/introspection/standard" , action ) ; } }
Process the parameters of the introspection request .