dubbo-rpc-extensions/dubbo-rpc-rest/src/main/java/org/apache/dubbo/rpc/protocol/rest/extension/resteasy/intercept/DubboServerWriterInterceptorContext.java [34:72]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
public class DubboServerWriterInterceptorContext extends ServerWriterInterceptorContext {
    private static final ErrorTypeAwareLogger logger =
            LoggerFactory.getErrorTypeAwareLogger(DubboServerWriterInterceptorContext.class);

    public DubboServerWriterInterceptorContext(
            WriterInterceptor[] interceptors,
            ResteasyProviderFactory providerFactory,
            Object entity,
            Class type,
            Type genericType,
            Annotation[] annotations,
            MediaType mediaType,
            MultivaluedMap<String, Object> headers,
            OutputStream outputStream,
            HttpRequest request) {
        super(
                interceptors,
                providerFactory,
                entity,
                type,
                genericType,
                annotations,
                mediaType,
                headers,
                outputStream,
                request);
    }

    @Override
    public void proceed() throws IOException, WebApplicationException {
        logger.debug("Dubbo server writer intercept  context: " + getClass().getName() + "  Method : proceed");

        if (interceptors == null || index >= interceptors.length) {
            return;
        } else {

            logger.debug("Dubbo server writer intercept  context WriterInterceptor: "
                    + interceptors[index].getClass().getName());
            interceptors[index++].aroundWriteTo(this);
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



dubbo-rpc-extensions/dubbo-rpc-rest/src/main/java/org/apache/dubbo/rpc/protocol/rest/resteasy/intercept/DubboServerWriterInterceptorContext.java [34:72]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
public class DubboServerWriterInterceptorContext extends ServerWriterInterceptorContext {
    private static final ErrorTypeAwareLogger logger =
            LoggerFactory.getErrorTypeAwareLogger(DubboServerWriterInterceptorContext.class);

    public DubboServerWriterInterceptorContext(
            WriterInterceptor[] interceptors,
            ResteasyProviderFactory providerFactory,
            Object entity,
            Class type,
            Type genericType,
            Annotation[] annotations,
            MediaType mediaType,
            MultivaluedMap<String, Object> headers,
            OutputStream outputStream,
            HttpRequest request) {
        super(
                interceptors,
                providerFactory,
                entity,
                type,
                genericType,
                annotations,
                mediaType,
                headers,
                outputStream,
                request);
    }

    @Override
    public void proceed() throws IOException, WebApplicationException {
        logger.debug("Dubbo server writer intercept  context: " + getClass().getName() + "  Method : proceed");

        if (interceptors == null || index >= interceptors.length) {
            return;
        } else {

            logger.debug("Dubbo server writer intercept  context WriterInterceptor: "
                    + interceptors[index].getClass().getName());
            interceptors[index++].aroundWriteTo(this);
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



