Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.analogweb.acf;
 
 
 
 
     static final String ATTRIBUTE_NAME = CurrentMultipartParameters.class.getCanonicalName() + "";
    @SuppressWarnings("unchecked")
    static <T extends MultipartMultipartParameters<T> get(HttpServletRequest request) {
        Object value = request.getAttribute();
        if (value instanceof MultipartParameters) {
            return (MultipartParameters<T>) value;
        }
        return null;
    }
    static <T extends Multipartvoid put(HttpServletRequest requestMultipartParameters<T> params) {
        request.setAttribute(params);
    }
    static void dispose(HttpServletRequest request) {
        request.removeAttribute();
    }
New to GrepCode? Check out our FAQ X