org.springframework.web.server.ServerWebExchangeDecorator Java Examples

The following examples show how to use org.springframework.web.server.ServerWebExchangeDecorator. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: NettyRoutingFilterInterceptor.java    From skywalking with Apache License 2.0 5 votes vote down vote up
public static EnhancedInstance getInstance(Object o) {
    EnhancedInstance instance = null;
    if (o instanceof DefaultServerWebExchange) {
        instance = (EnhancedInstance) o;
    } else if (o instanceof ServerWebExchangeDecorator) {
        ServerWebExchange delegate = ((ServerWebExchangeDecorator) o).getDelegate();
        return getInstance(delegate);
    }
    return instance;
}
 
Example #2
Source File: NettyRoutingFilterInterceptor.java    From skywalking with Apache License 2.0 5 votes vote down vote up
public static EnhancedInstance getInstance(Object o) {
    EnhancedInstance instance = null;
    if (o instanceof DefaultServerWebExchange) {
        instance = (EnhancedInstance) o;
    } else if (o instanceof ServerWebExchangeDecorator) {
        ServerWebExchange delegate = ((ServerWebExchangeDecorator) o).getDelegate();
        return getInstance(delegate);
    }
    return instance;
}
 
Example #3
Source File: DispatcherHandlerHandleMethodInterceptor.java    From skywalking with Apache License 2.0 5 votes vote down vote up
public static EnhancedInstance getInstance(Object o) {
    EnhancedInstance instance = null;
    if (o instanceof DefaultServerWebExchange) {
        instance = (EnhancedInstance) o;
    } else if (o instanceof ServerWebExchangeDecorator) {
        ServerWebExchange delegate = ((ServerWebExchangeDecorator) o).getDelegate();
        return getInstance(delegate);
    }
    return instance;
}