Package com.rop.sample.response

Examples of com.rop.sample.response.InterceptorResponse


     */
    public void beforeService(RopRequestContext ropRequestContext) {
        System.out.println("beforeService ...");

        if ("jhonson".equals(ropRequestContext.getParamValue("userName"))) {
            InterceptorResponse response = new InterceptorResponse();
            response.setTestField("the userName can't be jhonson!");
            //设置了RopResponse后,后续的服务将不执行,直接返回这个RopResponse响应
            ropRequestContext.setRopResponse(response);
        }
    }
View Full Code Here

TOP

Related Classes of com.rop.sample.response.InterceptorResponse

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.