io.github.johnjcool.keycloak.broker.cas.jaxb.ServiceResponseJaxbProvider Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of keycloak-cas-services Show documentation
Show all versions of keycloak-cas-services Show documentation
Extend Keycloack with CAS IDP.
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