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

io.github.johnjcool.keycloak.broker.cas.jaxb.ServiceResponseJaxbProvider Maven / Gradle / Ivy

There is a newer version: 4.8.3.Final
Show newest version
package io.github.johnjcool.keycloak.broker.cas.jaxb;

import io.github.johnjcool.keycloak.broker.cas.model.ServiceResponse;

import java.lang.annotation.Annotation;
import java.lang.reflect.Type;

import javax.ws.rs.Consumes;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.ext.Provider;

import org.jboss.resteasy.plugins.providers.jaxb.AbstractJAXBProvider;

@Provider
@Consumes(value = { MediaType.WILDCARD })
public class ServiceResponseJaxbProvider extends AbstractJAXBProvider {

	@Override
	protected boolean isReadWritable(final Class type, final Type genericType, final Annotation[] annotations, final MediaType mediaType) {
		return type == ServiceResponse.class;
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy