src/main/java/org/eiichiro/bootleg/AbstractRequest.java
protected Object builtin(Type type) {
		Class<?> rawType = Types.getRawType(type);
		
		if (rawType.equals(WebContext.class)) {
			return context;
		} else if (rawType.equals(HttpServletRequest.class)) {
			return context.request();
		} else if (rawType.equals(HttpServletResponse.class)) {
			return context.response();
		} else if (rawType.equals(HttpSession.class)) {
			return context.session();
		} else if (rawType.equals(ServletContext.class)) {
			return context.application();
		} else {
			// org.eiichiro.bootleg.Request.
			return this;
		}
	}
protected Object builtin(Type type) {
		Class<?> rawType = Types.getRawType(type);
		
		if (rawType.equals(WebContext.class)) {
			return context;
		} else if (rawType.equals(HttpServletRequest.class)) {
			return context.request();
		} else if (rawType.equals(HttpServletResponse.class)) {
			return context.response();
		} else if (rawType.equals(HttpSession.class)) {
			return context.session();
		} else if (rawType.equals(ServletContext.class)) {
			return context.application();
		} else {
			// org.eiichiro.bootleg.Request.
			return this;
		}
	}
protected Object builtin ( Type type ) { Class < ? > rawType = Types . getRawType ( type ) ; if ( rawType . equals ( WebContext . class ) ) { return context ; } else if ( rawType . equals ( HttpServletRequest . class ) ) { return context . request ( ) ; } else if ( rawType . equals ( HttpServletResponse . class ) ) { return context . response ( ) ; } else if ( rawType . equals ( HttpSession . class ) ) { return context . session ( ) ; } else if ( rawType . equals ( ServletContext . class ) ) { return context . application ( ) ; } else { // org.eiichiro.bootleg.Request. return this ; } }
Returns the value of built-in type.

@param type The parameter type.
@return The value of built-in type.
Returns the value of built - in type .