FileDocCategorySizeDatePackage
ClientBeansResolver.javaAPI DocGlassfish v2 API3476Fri May 04 22:31:18 BST 2007com.sun.enterprise.config.clientbeans

ClientBeansResolver

public class ClientBeansResolver extends DefaultHandler

Fields Summary
public static final String
SUN_ACC_DTD_PATH
Constructors Summary
Methods Summary
public org.xml.sax.InputSourceresolveEntity(java.lang.String publicID, java.lang.String systemID)

    
  
    //===========================================================
    // Resolver methods
    //===========================================================

          
        
        InputSource is = null;
        try {
            InputStream i = this.getClass().getResourceAsStream(SUN_ACC_DTD_PATH );          
            if( i!= null ) {
	        return new InputSource(i);
            }
            is =  new InputSource(
               new FileInputStream(
               new File(new java.net.URI(
                   RelativePathResolver.resolvePath(systemID)))));
        } catch(Exception e) {
            throw new SAXException("Cannot resolve ", e);
        }
        return is;