vdkoogh     2003/11/20 01:03:54

  Modified:    src/org/apache/xml/security/utils/resolver/implementations
                        ResolverFragment.java
  Log:
  Removed unused private static method isSameDocumentReference
  
  CVS: ----------------------------------------------------------------------
  CVS: PR:
  CVS:   If this change addresses a PR in the problem report tracking
  CVS:   database, then enter the PR number(s) here.
  CVS: Obtained from:
  CVS:   If this change has been taken from another system, such as NCSA,
  CVS:   then name the system in this line, otherwise delete it.
  CVS: Submitted by:
  CVS:   If this code has been contributed to Apache by someone else; i.e.,
  CVS:   they sent us a patch or a new module, then include their name/email
  CVS:   address here. If this is your work then delete this line.
  CVS: Reviewed by:
  CVS:   If we are doing pre-commit code reviews and someone else has
  CVS:   reviewed your changes, include their name(s) here.
  CVS:   If you have not had it reviewed then delete this line.
  
  Revision  Changes    Path
  1.16      +1 -73     
xml-security/src/org/apache/xml/security/utils/resolver/implementations/ResolverFragment.java
  
  Index: ResolverFragment.java
  ===================================================================
  RCS file: 
/home/cvs/xml-security/src/org/apache/xml/security/utils/resolver/implementations/ResolverFragment.java,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- ResolverFragment.java     12 Nov 2003 07:45:30 -0000      1.15
  +++ ResolverFragment.java     20 Nov 2003 09:03:54 -0000      1.16
  @@ -183,78 +183,6 @@
      }
   
      /**
  -    * Method isSameDocumentReference
  -    *
  -    * @param uri
  -    * @param BaseURI
  -    *
  -    * @throws URI.MalformedURIException
  -    */
  -   private static boolean isSameDocumentReference(Attr uri, String BaseURI)
  -           throws URI.MalformedURIException {
  -
  -      String uriNodeValue = uri.getNodeValue();
  -
  -      if (uriNodeValue.equals("") || uriNodeValue.startsWith("#")) {
  -         return true;
  -      } else {
  -         return false;
  -      }
  -   }
  -
  -   /**
  -    * Method selectIdentifiedPortions
  -    *
  -    * @param uri
  -    * @param BaseURI
  -    * @param input
  -    *
  -    * @throws ResourceResolverException
  -    * private static XMLSignatureInput selectIdentifiedPortions(
  -    *       Attr uri, String BaseURI, XMLSignatureInput input)
  -    *          throws ResourceResolverException {
  -    *
  -    *  try {
  -    *     log.debug("Got " + input.getBytes().length
  -    *               + " bytes from source and  URI oif " + 
input.getSourceURI());
  -    *  } catch (Exception ex) {
  -    *     throw new ResourceResolverException("generic.EmptyMessage", ex, 
uri,
  -    *                                         BaseURI);
  -    *  }
  -    *
  -    *  try {
  -    *     URI fragmentURI = new URI(new URI(BaseURI), uri.getNodeValue());
  -    *     String fragment = fragmentURI.getFragment();
  -    *     javax.xml.parsers.DocumentBuilderFactory dbf =
  -    *        javax.xml.parsers.DocumentBuilderFactory.newInstance();
  -    *
  -    *     dbf.setNamespaceAware(true);
  -    *     dbf.setValidating(true);
  -    *
  -    *     javax.xml.parsers.DocumentBuilder db = dbf.newDocumentBuilder();
  -    *     Document doc =
  -    *        db.parse(new java.io.ByteArrayInputStream(input.getBytes()));
  -    *
  -    *     log.debug("Owner Document " + 
doc.getDocumentElement().getTagName());
  -    *     log.debug("try to select fragment " + fragment);
  -    *
  -    *     // Element selectedElem = doc.getElementById(fragment);
  -    *     Element selectedElem = IdResolver.getElementById(doc, fragment);
  -    *
  -    *     if (selectedElem != null) {
  -    *        log.debug("Selection hat geklappt!!!: "
  -    *                  + selectedElem.getTagName());
  -    *     }
  -    *
  -    *     return input;
  -    *  } catch (Exception ex) {
  -    *     throw new ResourceResolverException("generic.EmptyMessage", ex, 
uri,
  -    *                                         BaseURI);
  -    *  }
  -    * }
  -    */
  -
  -    /**
        * Dereferences a same-document URI fragment.
        *
        * @param node the node (document or element) referenced by the
  
  
  

Reply via email to