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

com.yuxuan66.core.handler.MappingHandler Maven / Gradle / Ivy

package com.yuxuan66.core.handler;

import java.lang.reflect.Method;

import com.yuxuan66.core.annotaion.enums.MappingType;

public class MappingHandler {

	// 请求的Controller
	private Object controller;
	// 请求的方法
	private Method mappingMethod;
	// 请求方式
	private MappingType requestMethod;
	//是否返回JSON
	private boolean isRest;
	public boolean isRest() {
		return isRest;
	}

	public void setRest(boolean isRest) {
		this.isRest = isRest;
	}

	public MappingHandler() {
	}

	public MappingHandler(Object controller, Method mappingMethod, MappingType requestMethod,boolean isRest) {
		this.controller = controller;
		this.mappingMethod = mappingMethod;
		this.requestMethod = requestMethod;
		this.isRest = isRest;
	}

	public Object getController() {
		return controller;
	}

	public void setController(Object controller) {
		this.controller = controller;
	}

	public Method getMappingMethod() {
		return mappingMethod;
	}

	public void setMappingMethod(Method mappingMethod) {
		this.mappingMethod = mappingMethod;
	}

	public MappingType getRequestMethod() {
		return requestMethod;
	}

	public void setRequestMethod(MappingType requestMethod) {
		this.requestMethod = requestMethod;
	}

	

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy