io.crnk.rs.internal.legacy.provider.ContainerRequestContextProvider Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of crnk-rs Show documentation
Show all versions of crnk-rs Show documentation
JSON API framework for Java
package io.crnk.rs.internal.legacy.provider;
import com.fasterxml.jackson.databind.ObjectMapper;
import javax.ws.rs.container.ContainerRequestContext;
public class ContainerRequestContextProvider implements RequestContextParameterProvider {
@Override
public ContainerRequestContext provideValue(Parameter parameter, ContainerRequestContext requestContext, ObjectMapper objectMapper) {
return requestContext;
}
@Override
public boolean provides(Parameter parameter) {
return ContainerRequestContext.class.isAssignableFrom(parameter.getType());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy