All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.crnk.rs.internal.legacy.provider.ContainerRequestContextProvider Maven / Gradle / Ivy

There is a newer version: 2.6.20180430102904
Show newest version
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