Package org.eclipse.jst.jsp.core.internal.contenttype

Examples of org.eclipse.jst.jsp.core.internal.contenttype.JSPResourceEncodingDetector


    }
    return result;
  }

  private IResourceCharsetDetector getDetector() {
    return new JSPResourceEncodingDetector();
  }
View Full Code Here


    handleStandardCalculations(description, detector);
    // now do those specific for JSPs
    // note: detector should always be of correct instance, but we'll
    // check, for now.
    if (detector instanceof JSPResourceEncodingDetector) {
      JSPResourceEncodingDetector jspDetector = (JSPResourceEncodingDetector) detector;
      String language = jspDetector.getLanguage();
      if (language != null && language.length() > 0) {
        description.setProperty(IContentDescriptionForJSP.LANGUAGE_ATTRIBUTE, language);
      }
      String contentTypeAttribute = jspDetector.getContentType();
      if (contentTypeAttribute != null && contentTypeAttribute.length() > 0) {
        description.setProperty(IContentDescriptionForJSP.CONTENT_TYPE_ATTRIBUTE, contentTypeAttribute);
      }
    }
  }
View Full Code Here

TOP

Related Classes of org.eclipse.jst.jsp.core.internal.contenttype.JSPResourceEncodingDetector

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.