// Path: commons/src/main/java/org/nesty/commons/constant/http/HttpConstants.java
// public class HttpConstants {
// 
//     public static final String HEADER_X_FORWARDED_FOR = "X-Forwarded-For";
//     public static final String HEADER_CONTENT_LENGTH = "Content-Length";
//     public static final String HEADER_CONTENT_TYPE = "Content-Type";
//     public static final String HEADER_CONNECTION = "Connection";
// 
//     public static final String HEADER_SERVER = "Server";
//     public static final String HEADER_REQUEST_ID = "Request-Id";
//     public static final String HEADER_CONNECTION_KEEPALIVE = "keep-alive";
//     public static final String HEADER_CONNECTION_CLOSE = "close";
//     public static final String HEADER_CONTENT_TYPE_TEXT = "application/text";
//     public static final String HEADER_CONTENT_TYPE_JSON = "application/json";
// }
// 
// Path: commons/src/main/java/org/nesty/commons/constant/http/RequestMethod.java
// public enum RequestMethod {
//     GET, POST, PUT, DELETE, UNKOWN
// }


import org.nesty.commons.constant.http.HttpConstants;
import org.nesty.commons.constant.http.RequestMethod;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
package org.nesty.commons.annotations;



@Target({ElementType.TYPE, ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
public @interface RequestMapping {
    String value();
    RequestMethod method() default RequestMethod.GET;
// Path: commons/src/main/java/org/nesty/commons/constant/http/HttpConstants.java
// public class HttpConstants {
// 
//     public static final String HEADER_X_FORWARDED_FOR = "X-Forwarded-For";
//     public static final String HEADER_CONTENT_LENGTH = "Content-Length";
//     public static final String HEADER_CONTENT_TYPE = "Content-Type";
//     public static final String HEADER_CONNECTION = "Connection";
// 
//     public static final String HEADER_SERVER = "Server";
//     public static final String HEADER_REQUEST_ID = "Request-Id";
//     public static final String HEADER_CONNECTION_KEEPALIVE = "keep-alive";
//     public static final String HEADER_CONNECTION_CLOSE = "close";
//     public static final String HEADER_CONTENT_TYPE_TEXT = "application/text";
//     public static final String HEADER_CONTENT_TYPE_JSON = "application/json";
// }
// 
// Path: commons/src/main/java/org/nesty/commons/constant/http/RequestMethod.java
// public enum RequestMethod {
//     GET, POST, PUT, DELETE, UNKOWN
// }


// Path: commons/src/main/java/org/nesty/commons/annotations/RequestMapping.java
import org.nesty.commons.constant.http.HttpConstants;
import org.nesty.commons.constant.http.RequestMethod;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

package org.nesty.commons.annotations;



@Target({ElementType.TYPE, ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
public @interface RequestMapping {
    String value();
    RequestMethod method() default RequestMethod.GET;
    String consumes() default HttpConstants.HEADER_CONTENT_TYPE_JSON;