Package com.linecorp.armeria.spring
Class ExampleHeaders
java.lang.Object
com.linecorp.armeria.spring.ExampleHeaders
public final class ExampleHeaders extends Object
Used as an example header object in
AnnotatedServiceRegistrationBean
and ThriftServiceRegistrationBean
.-
Method Summary
Modifier and Type Method Description HttpHeaders
getHeaders()
Returns the headers of thisExampleHeaders
.String
getMethodName()
Returns the method name of thisExampleHeaders
.static ExampleHeaders
of(@NotNull HttpHeaders headers)
static ExampleHeaders
of(@NotNull CharSequence name, @NotNull String value)
static ExampleHeaders
of(@NotNull String methodName, @NotNull HttpHeaders headers)
static ExampleHeaders
of(@NotNull String methodName, @NotNull CharSequence name, @NotNull String value)
String
toString()
-
Method Details
-
of
public static ExampleHeaders of(@NotNull @NotNull String methodName, @NotNull @NotNull HttpHeaders headers) -
of
public static ExampleHeaders of(@NotNull @NotNull String methodName, @NotNull @NotNull CharSequence name, @NotNull @NotNull String value) -
of
-
of
public static ExampleHeaders of(@NotNull @NotNull CharSequence name, @NotNull @NotNull String value) -
getMethodName
Returns the method name of thisExampleHeaders
. -
getHeaders
Returns the headers of thisExampleHeaders
. -
toString
-