java类javax.ws.rs.ext.ReaderInterceptorContext的实例源码

GZIPReaderInterceptor.java 文件源码 项目:divide 阅读 22 收藏 0 点赞 0 评论 0
@Override
public Object aroundReadFrom(ReaderInterceptorContext context)
        throws IOException, WebApplicationException {
    final InputStream originalInputStream = context.getInputStream();
    context.setInputStream(new GZIPInputStream(originalInputStream));
    return context.proceed();
}
GZIPConditionalReaderInterceptor.java 文件源码 项目:cloudstore 阅读 21 收藏 0 点赞 0 评论 0
@Override
public Object aroundReadFrom(ReaderInterceptorContext context)
        throws IOException, WebApplicationException {
    if(GZIPUtil.isRequestCompressedWithGzip(context)){
        return super.aroundReadFrom(context);
    } else{
        return context.proceed();
    }
}
LoggingFilter.java 文件源码 项目:dubbo2 阅读 22 收藏 0 点赞 0 评论 0
public Object aroundReadFrom(ReaderInterceptorContext context) throws IOException, WebApplicationException {
    byte[] buffer = IOUtils.toByteArray(context.getInputStream());
    logger.info("The contents of request body is: \n" + new String(buffer, "UTF-8") + "\n");
    context.setInputStream(new ByteArrayInputStream(buffer));
    return context.proceed();
}
TraceInterceptor.java 文件源码 项目:dubbo2 阅读 25 收藏 0 点赞 0 评论 0
public Object aroundReadFrom(ReaderInterceptorContext readerInterceptorContext) throws IOException, WebApplicationException {
    System.out.println("Reader interceptor invoked");
    return readerInterceptorContext.proceed();
}
DynamicTraceInterceptor.java 文件源码 项目:dubbo2 阅读 19 收藏 0 点赞 0 评论 0
public Object aroundReadFrom(ReaderInterceptorContext readerInterceptorContext) throws IOException, WebApplicationException {
    System.out.println("Dynamic reader interceptor invoked");
    return readerInterceptorContext.proceed();
}
TraceInterceptor.java 文件源码 项目:dubbo2 阅读 23 收藏 0 点赞 0 评论 0
public Object aroundReadFrom(ReaderInterceptorContext readerInterceptorContext) throws IOException, WebApplicationException {
    System.out.println("Reader interceptor invoked");
    return readerInterceptorContext.proceed();
}
DynamicTraceInterceptor.java 文件源码 项目:dubbo2 阅读 20 收藏 0 点赞 0 评论 0
public Object aroundReadFrom(ReaderInterceptorContext readerInterceptorContext) throws IOException, WebApplicationException {
    System.out.println("Dynamic reader interceptor invoked");
    return readerInterceptorContext.proceed();
}
TraceInterceptor.java 文件源码 项目:dubbo2 阅读 24 收藏 0 点赞 0 评论 0
public Object aroundReadFrom(ReaderInterceptorContext readerInterceptorContext) throws IOException, WebApplicationException {
    System.out.println("Reader interceptor invoked");
    return readerInterceptorContext.proceed();
}
DynamicTraceInterceptor.java 文件源码 项目:dubbo2 阅读 19 收藏 0 点赞 0 评论 0
public Object aroundReadFrom(ReaderInterceptorContext readerInterceptorContext) throws IOException, WebApplicationException {
    System.out.println("Dynamic reader interceptor invoked");
    return readerInterceptorContext.proceed();
}
PropertyBoxReaderInterceptor.java 文件源码 项目:holon-jaxrs 阅读 24 收藏 0 点赞 0 评论 0
@Override
public Object aroundReadFrom(ReaderInterceptorContext context) throws IOException, WebApplicationException {
    return Context.get().executeThreadBound(PropertySet.CONTEXT_KEY, propertySet, () -> context.proceed());
}


问题


面经


文章

微信
公众号

扫码关注公众号