001package io.avaje.http.generator.core; 002 003public enum ParamType { 004 005 CONTEXT("ctx", "ctx"), 006 BODY("body", "body"), 007 PATHPARAM("pathParam", "path"), 008 FORM("form", "form"), 009 BEANPARAM("beanParam", "bean"), 010 QUERYPARAM("queryParam", "query"), 011 FORMPARAM("formParam", "form"), 012 COOKIE("cookie", "cookie"), 013 HEADER("header", "header"); 014 015 private final String code; 016 private final String type; 017 018 ParamType(String code, String type) { 019 this.code = code; 020 this.type = type; 021 } 022 023 public String getType() { 024 return type; 025 } 026 027 @Override 028 public String toString() { 029 return code; 030 } 031}