use of org.apache.dubbo.metadata.rest.RequestMetadata in project dubbo by alibaba.
the class HeaderParamParameterProcessor method process.
@Override
protected void process(String headerName, String defaultValue, Annotation annotation, Object parameter, int parameterIndex, Method method, RestMethodMetadata restMethodMetadata) {
RequestMetadata requestMetadata = restMethodMetadata.getRequest();
// Add the placeholder as header value
requestMetadata.addHeader(headerName, buildDefaultValue(parameterIndex));
}
use of org.apache.dubbo.metadata.rest.RequestMetadata in project dubbo by alibaba.
the class HeaderParamParameterProcessor method process.
@Override
protected void process(String headerName, String defaultValue, AnnotationMirror annotation, VariableElement parameter, int parameterIndex, ExecutableElement method, RestMethodMetadata restMethodMetadata) {
RequestMetadata requestMetadata = restMethodMetadata.getRequest();
// Add the placeholder as header value
requestMetadata.addHeader(headerName, buildDefaultValue(parameterIndex));
}
Aggregations