Record Class HttpServiceMethod.HttpRequestValuesInitializer
java.lang.Object
java.lang.Record
cn.taketoday.web.service.invoker.HttpServiceMethod.HttpRequestValuesInitializer
- 封闭类:
- HttpServiceMethod
private static record HttpServiceMethod.HttpRequestValuesInitializer(HttpMethod httpMethod, String url, MediaType contentType, List<MediaType> acceptMediaTypes, Supplier<HttpRequestValues.Builder> requestValuesSupplier)
extends Record
Factory for
HttpRequestValues with values extracted from the type
and method-level @HttpRequest annotations.-
字段概要
字段修饰符和类型字段说明acceptMediaTypes记录组件的字段。private final MediaTypecontentType记录组件的字段。private final HttpMethodhttpMethod记录组件的字段。private final Supplier<HttpRequestValues.Builder>requestValuesSupplier记录组件的字段。private final Stringurl记录组件的字段。 -
构造器概要
构造器限定符构造器说明privateHttpRequestValuesInitializer(HttpMethod httpMethod, String url, MediaType contentType, List<MediaType> acceptMediaTypes, Supplier<HttpRequestValues.Builder> requestValuesSupplier) 创建HttpRequestValuesInitializer记录的实例。 -
方法概要
修饰符和类型方法说明返回acceptMediaTypes记录组件的值。返回contentType记录组件的值。create(Method method, Class<?> containingClass, cn.taketoday.core.StringValueResolver embeddedValueResolver, Supplier<HttpRequestValues.Builder> requestValuesSupplier) Introspect the method and create the request factory for it.final boolean指示某个其他对象是否“等于”此对象。final inthashCode()返回此对象的哈希代码值。返回httpMethod记录组件的值。initAccept(HttpExchange typeAnnot, HttpExchange annot) private static MediaTypeinitContentType(HttpExchange typeAnnot, HttpExchange annot) private static HttpMethodinitHttpMethod(HttpExchange typeAnnot, HttpExchange annot) private static StringinitUrl(HttpExchange typeAnnot, HttpExchange annot, cn.taketoday.core.StringValueResolver embeddedValueResolver) 返回requestValuesSupplier记录组件的值。final StringtoString()返回此记录的字符串表示形式。url()返回url记录组件的值。
-
字段详细资料
-
httpMethod
httpMethod记录组件的字段。 -
url
url记录组件的字段。 -
contentType
contentType记录组件的字段。 -
acceptMediaTypes
acceptMediaTypes记录组件的字段。 -
requestValuesSupplier
requestValuesSupplier记录组件的字段。
-
-
构造器详细资料
-
HttpRequestValuesInitializer
private HttpRequestValuesInitializer(@Nullable HttpMethod httpMethod, @Nullable String url, @Nullable MediaType contentType, @Nullable List<MediaType> acceptMediaTypes, Supplier<HttpRequestValues.Builder> requestValuesSupplier) 创建HttpRequestValuesInitializer记录的实例。- 参数:
httpMethod-httpMethod记录组件的值url-url记录组件的值contentType-contentType记录组件的值acceptMediaTypes-acceptMediaTypes记录组件的值requestValuesSupplier-requestValuesSupplier记录组件的值
-
-
方法详细资料
-
initializeRequestValuesBuilder
-
create
public static HttpServiceMethod.HttpRequestValuesInitializer create(Method method, Class<?> containingClass, @Nullable cn.taketoday.core.StringValueResolver embeddedValueResolver, Supplier<HttpRequestValues.Builder> requestValuesSupplier) Introspect the method and create the request factory for it. -
initHttpMethod
@Nullable private static HttpMethod initHttpMethod(@Nullable HttpExchange typeAnnot, HttpExchange annot) -
initUrl
@Nullable private static String initUrl(@Nullable HttpExchange typeAnnot, HttpExchange annot, @Nullable cn.taketoday.core.StringValueResolver embeddedValueResolver) -
initContentType
@Nullable private static MediaType initContentType(@Nullable HttpExchange typeAnnot, HttpExchange annot) -
initAccept
@Nullable private static List<MediaType> initAccept(@Nullable HttpExchange typeAnnot, HttpExchange annot) -
toString
返回此记录的字符串表示形式。此表示形式包含类型的名称,后跟每个记录组件的名称和值。 -
hashCode
public final int hashCode()返回此对象的哈希代码值。此值派生自每个记录组件的哈希代码。 -
equals
指示某个其他对象是否“等于”此对象。如果两个对象属于同一个类,而且所有记录组件都相等,则这两个对象相等。 此记录中的所有组件都使用Objects::equals(Object,Object)进行比较。 -
httpMethod
返回httpMethod记录组件的值。- 返回:
httpMethod记录组件的值
-
url
返回url记录组件的值。- 返回:
url记录组件的值
-
contentType
返回contentType记录组件的值。- 返回:
contentType记录组件的值
-
acceptMediaTypes
返回acceptMediaTypes记录组件的值。- 返回:
acceptMediaTypes记录组件的值
-
requestValuesSupplier
返回requestValuesSupplier记录组件的值。- 返回:
requestValuesSupplier记录组件的值
-