Package com.linecorp.armeria.spring
Class GrpcExampleHeaders
java.lang.Object
com.linecorp.armeria.spring.GrpcExampleHeaders
public final class GrpcExampleHeaders extends Object
Used as an example header object in
GrpcServiceRegistrationBean
.-
Method Summary
Modifier and Type Method Description HttpHeaders
getHeaders()
Returns the example headers of thisGrpcExampleHeaders
.String
getMethodName()
Returns the method name of thisGrpcExampleHeaders
.String
getServiceType()
Returns the service type of thisGrpcExampleHeaders
.static GrpcExampleHeaders
of(@NotNull String serviceType, @NotNull HttpHeaders headers)
static GrpcExampleHeaders
of(@NotNull String serviceType, @NotNull CharSequence name, @NotNull String value)
static GrpcExampleHeaders
of(@NotNull String serviceType, @NotNull String methodName, @NotNull HttpHeaders headers)
Returns a newGrpcExampleHeaders
for the method with the specifiedserviceType
,methodName
andheaders
.static GrpcExampleHeaders
of(@NotNull String serviceType, @NotNull String methodName, @NotNull CharSequence name, @NotNull String value)
Returns a newGrpcExampleHeaders
for the method with the specifiedserviceType
,methodName
,name
andvalue
.String
toString()
-
Method Details
-
of
public static GrpcExampleHeaders of(@NotNull @NotNull String serviceType, @NotNull @NotNull String methodName, @NotNull @NotNull HttpHeaders headers)Returns a newGrpcExampleHeaders
for the method with the specifiedserviceType
,methodName
andheaders
. -
of
public static GrpcExampleHeaders of(@NotNull @NotNull String serviceType, @NotNull @NotNull String methodName, @NotNull @NotNull CharSequence name, @NotNull @NotNull String value)Returns a newGrpcExampleHeaders
for the method with the specifiedserviceType
,methodName
,name
andvalue
. -
of
public static GrpcExampleHeaders of(@NotNull @NotNull String serviceType, @NotNull @NotNull HttpHeaders headers) -
of
public static GrpcExampleHeaders of(@NotNull @NotNull String serviceType, @NotNull @NotNull CharSequence name, @NotNull @NotNull String value) -
getServiceType
Returns the service type of thisGrpcExampleHeaders
. -
getMethodName
Returns the method name of thisGrpcExampleHeaders
. -
getHeaders
Returns the example headers of thisGrpcExampleHeaders
. -
toString
-