private Response process(MultivaluedMap<String, String> parameters, String clientId, String clientSecret)
    {
        // Call Authlete's /api/auth/revocation API.
        RevocationResponse response = getApiCaller().callRevocation(parameters, clientId, clientSecret);

        // '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 INVALID_CLIENT:
                // 401 Unauthorized
                return ResponseUtil.unauthorized(content, CHALLENGE);

            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.javaScript(content);

            default:
                // This never happens.
                throw getApiCaller().unknownAction("/api/auth/revocation", action);
        }
    }
private Response process(MultivaluedMap<String, String> parameters, String clientId, String clientSecret)
    {
        
        RevocationResponse response = getApiCaller().callRevocation(parameters, clientId, clientSecret);

        
        
        Action action = response.getAction();

        
        String content = response.getResponseContent();

        
        switch (action)
        {
            case INVALID_CLIENT:
                
                return ResponseUtil.unauthorized(content, CHALLENGE);

            case INTERNAL_SERVER_ERROR:
                
                return ResponseUtil.internalServerError(content);

            case BAD_REQUEST:
                
                return ResponseUtil.badRequest(content);

            case OK:
                
                return ResponseUtil.javaScript(content);

            default:
                
                throw getApiCaller().unknownAction("/api/auth/revocation", action);
        }
    }
private Response process ( MultivaluedMap < String , String > parameters , String clientId , String clientSecret ) { // Call Authlete's /api/auth/revocation API. RevocationResponse response = getApiCaller ( ) . callRevocation ( parameters , clientId , clientSecret ) ; // '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 INVALID_CLIENT : // 401 Unauthorized return ResponseUtil . unauthorized ( content , CHALLENGE ) ; 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 . javaScript ( content ) ; default : // This never happens. throw getApiCaller ( ) . unknownAction ( "/api/auth/revocation" , action ) ; } }
Process the parameters of the revocation request.
Process the parameters of the revocation request .