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

org.onetwo.common.apiclient.annotation.ResponseHandler Maven / Gradle / Ivy

package org.onetwo.common.apiclient.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import org.onetwo.common.apiclient.ApiErrorHandler;
import org.onetwo.common.apiclient.ApiErrorHandler.DefaultErrorHandler;
import org.onetwo.common.apiclient.CustomResponseHandler;
import org.onetwo.common.apiclient.CustomResponseHandler.NullHandler;

/**
 * produces -> acceptHeader
 * consumes -> contentType
 * @author wayshall
 * 
*/ @Retention(RetentionPolicy.RUNTIME) @Target({ElementType.TYPE, ElementType.METHOD}) public @interface ResponseHandler { Class> value() default NullHandler.class; Class errorHandler() default DefaultErrorHandler.class; }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy