Package org.glassfish.jersey.server.mvc.spi

Examples of org.glassfish.jersey.server.mvc.spi.ViewableContextException


            return resolveAbsoluteViewable(viewable, mediaType, templateProcessor);
        } else if (viewable.getResolvingClass() != null) {
            return resolveRelativeViewable(viewable, viewable.getResolvingClass(), mediaType, templateProcessor);
        } else {
            if (resolvingClass == null) {
                throw new ViewableContextException(LocalizationMessages.TEMPLATE_RESOLVING_CLASS_CANNOT_BE_NULL());
            }

            return resolveRelativeViewable(viewable, resolvingClass, mediaType, templateProcessor);
        }
    }
View Full Code Here


                                            final Class<?> resourceClass, final TemplateProcessor templateProcessor) {
        if (viewable.isTemplateNameAbsolute()) {
            return resolveAbsoluteViewable(viewable, resourceClass, mediaType, templateProcessor);
        } else {
            if (resourceClass == null) {
                throw new ViewableContextException(LocalizationMessages.TEMPLATE_RESOLVING_CLASS_CANNOT_BE_NULL());
            }

            return resolveRelativeViewable(viewable, resourceClass, mediaType, templateProcessor);
        }
    }
View Full Code Here

TOP

Related Classes of org.glassfish.jersey.server.mvc.spi.ViewableContextException

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.