Package org.zaproxy.zap.extension.api

Examples of org.zaproxy.zap.extension.api.ApiException


    public ApiResponse handleApiAction(String name, JSONObject params) throws ApiException {

        if (ACTION_SET_REVEAL.equals(name)) {
            extension.setReveal(getParam(params, PARAM_REVEAL, false));
        } else {
            throw new ApiException(ApiException.Type.BAD_ACTION);
        }
        return ApiResponseElement.OK;
    }
View Full Code Here


        ApiResponse result = null;

        if (VIEW_REVEAL.equals(name)) {
            result = new ApiResponseElement(name, Boolean.toString(extension.isReveal()));
        } else {
            throw new ApiException(ApiException.Type.BAD_VIEW);
        }
        return result;
    }
View Full Code Here

TOP

Related Classes of org.zaproxy.zap.extension.api.ApiException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.