Package net.sf.toxicity

Examples of net.sf.toxicity.MimeType


    private Document process(ProceedingJoinPoint pjp) throws Throwable {
       
        Pipeline p = (Pipeline)pjp.getTarget();
        Document d = (Document)pjp.getArgs()[0];
       
        MimeType mt = p.getClass().getAnnotation(MimeType.class);
        if(mt != null) {
            String mimeType = mt.value();
            log.debug("Specified document mime type: " + mimeType);
            mLastMimeType.set(mt.value());
        } else {
            log.debug("No mime type specified");
        }
       
        return (Document)pjp.proceed();
View Full Code Here

TOP

Related Classes of net.sf.toxicity.MimeType

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.