org.analogweb.util.RequestContextResolverUtils Maven / Gradle / Ivy
The newest version!
package org.analogweb.util;
import org.analogweb.RequestContext;
import org.analogweb.core.RequestContextWrapper;
/**
* @author snowgooseyk
*/
public final class RequestContextResolverUtils {
private RequestContextResolverUtils() {
// nop.
}
@SuppressWarnings("unchecked")
public static T resolveRequestContext(RequestContext incoming) {
if (incoming instanceof RequestContextWrapper) {
return (T) ((RequestContextWrapper) incoming).getOriginalRequestContext();
}
return (T) incoming;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy