Package org.glassfish.web.deployment.descriptor

Examples of org.glassfish.web.deployment.descriptor.MimeMappingDescriptor


      boolean oneFailed = false;
      boolean foundIt = false;
      // get the mimeType's in this .war
      for (Enumeration e = descriptor.getMimeMappings() ; e.hasMoreElements() ;) {
    foundIt = false;
    MimeMappingDescriptor mimemapping = (MimeMappingDescriptor)e.nextElement();
    String mimeType = mimemapping.getMimeType();
    logger.log(Level.FINE, "servlet mimeType: " + mimeType);
    int pos = mimeType.indexOf("/");
    // user defined
    // see http://www-dos.uniinc.msk.ru/tech1/1995/mime/m_tech.htm#Type
View Full Code Here


     * @return the descriptor instance to associate with this XMLNode
     */
    @Override
    public MimeMappingDescriptor getDescriptor() {
        if (descriptor==null) {
            descriptor = new MimeMappingDescriptor();
        }
        return descriptor;
    }
View Full Code Here

TOP

Related Classes of org.glassfish.web.deployment.descriptor.MimeMappingDescriptor

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.