All Downloads are FREE. Search and download functionalities are using the official Maven repository.

goja.rapid.mvc.interceptor.PUT Maven / Gradle / Ivy

The newest version!
package goja.rapid.mvc.interceptor;

import com.jfinal.aop.Interceptor;
import com.jfinal.aop.Invocation;
import com.jfinal.core.Controller;

/**
 * 

* * @author sogYF * @version 1.0 * @since JDK 1.6 */ public class PUT implements Interceptor { public void intercept(Invocation ai) { Controller controller = ai.getController(); if ("PUT".equalsIgnoreCase(controller.getRequest().getMethod().toUpperCase())) { ai.invoke(); } else { controller.renderError(404); } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy