// Path: framework/src/main/java/com/network/protocol/http/HttpMethod.java
// public class HttpMethod {
// 
//     public enum Type{
//         GET,
//         POST,
//         PUT,
//         DELETE;
//     }
// 
//     public static Type resolver(String methodWord){
//         switch (methodWord){
//             case "GET":
//                 return Type.GET;
//             case "POST":
//                 return Type.POST;
//             case "PUT":
//                 return Type.PUT;
//             case "DELETE":
//                 return Type.DELETE;
//             default:
//                 throw new UnsupportedOperationException("do not support it method type is :"+methodWord);
//         }
//     }
// }


import com.network.protocol.http.HttpMethod;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
package com.framework.webdevelop.annotation;



/**
 * Author Jun
 * Email
 * Date   6/25/17
 * Time   1:03 PM
 */
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
public @interface RequestMapping {
    String uri() default  "/";
// Path: framework/src/main/java/com/network/protocol/http/HttpMethod.java
// public class HttpMethod {
// 
//     public enum Type{
//         GET,
//         POST,
//         PUT,
//         DELETE;
//     }
// 
//     public static Type resolver(String methodWord){
//         switch (methodWord){
//             case "GET":
//                 return Type.GET;
//             case "POST":
//                 return Type.POST;
//             case "PUT":
//                 return Type.PUT;
//             case "DELETE":
//                 return Type.DELETE;
//             default:
//                 throw new UnsupportedOperationException("do not support it method type is :"+methodWord);
//         }
//     }
// }


// Path: framework/src/main/java/com/framework/webdevelop/annotation/RequestMapping.java
import com.network.protocol.http.HttpMethod;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

package com.framework.webdevelop.annotation;



/**
 * Author Jun
 * Email
 * Date   6/25/17
 * Time   1:03 PM
 */
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
public @interface RequestMapping {
    String uri() default  "/";
    HttpMethod.Type method() default HttpMethod.Type.GET;