Package de.danet.an.util.sax

Examples of de.danet.an.util.sax.HandlerStack$MyHandler


        if (ldapContext == null) {
            throw new IllegalStateException
              ("Attribute \"ldapContext\" must be specified.");
        }
        try {
            HandlerStack handler = new HandlerStack(new ContentHandler ());
            getXML (new XMLOutput(handler.contentHandler()));
        } catch (SAXException e) {
            throw new JellyTagException(e.getException());
        }
    }
View Full Code Here


        if (ldapContext == null) {
            throw new IllegalStateException
              ("Attribute \"ldapContext\" must be specified.");
        }
        try {
            HandlerStack handler = new HandlerStack(new ContentHandler ());
            getXML (new XMLOutput(handler.contentHandler()));
        } catch (SAXException e) {
            throw new JellyTagException(e.getException());
        }
    }
View Full Code Here

        if (ldapContext == null) {
            throw new IllegalStateException
              ("Attribute \"ldapContext\" must be specified.");
        }
        try {
            HandlerStack handler = new HandlerStack(new ContentHandler ());
            getXML (new XMLOutput(handler.contentHandler()));
        } catch (SAXException e) {
            throw new JellyTagException(e.getException());
        }
    }
View Full Code Here

  setPaAuditEventSelection(procDef.auditEventSelection());
  setPaStoreAuditEvents(procDef.storeAuditEvents());
  baRepresentations.clear ();

  setPaPriority(Priority.NORMAL);
  HandlerStack hs = new HandlerStack (new SAXInitializer ());
  hs.setContextData ("packageId", procDef.packageId());
  try {
      procDef.toSAX().emit(hs.contentHandler());
  } catch (SAXException e) {
      logger.error (e.getMessage (), e);
      throw new IllegalArgumentException (e.getMessage ());
  }
View Full Code Here

    }

    private String determineArrayType
  (SAXEventBuffer buf, SerializationContext context)
  throws SAXException {
  HandlerStack hs = new HandlerStack (new ArrayTypeExtractor(context));
  hs.setContextData("types", new HashSet ());
  hs.setContextData ("items", new Integer (0));
  hs.setContextData ("typesValid", Boolean.TRUE);
  hs.contentHandler().startElement
      ("", "root", "root", new AttributesImpl ());
  buf.emit (hs.contentHandler());
  hs.contentHandler().endElement ("", "root", "root");
  Set types = (Set)hs.getContextData("types");
  String xsdPref = context.getPrefixForURI(XMLUtil.XMLNS_SCHEMA);
  String arrayType;
  String dim = "[" + (Integer)hs.getContextData("items") + "]";
  if (!((Boolean)hs.getContextData ("typesValid")).booleanValue()
      || types.size () > 1) {
      arrayType = xsdPref + ":" + "ur-type" + dim;
  } else {
      Iterator i = types.iterator();
      NsAndLocal type = (NsAndLocal)i.next ();
View Full Code Here

    protected static void importSAXAsChild
        (SOAPMessage message, SOAPElement parent, SAXEventBuffer sax)
        throws SOAPException {
        SOAPEnvelope env = message.getSOAPPart().getEnvelope();

        HandlerStack hs = new HandlerStack (new SOAPBuilder(parent));
        hs.setContextData ("envelope", env);
        try {
            sax.emit(hs.contentHandler());
        } catch (SAXException e) {
            throw (IllegalArgumentException)
                (new IllegalArgumentException(e.getMessage()).initCause(e));
        }
    }
View Full Code Here

TOP

Related Classes of de.danet.an.util.sax.HandlerStack$MyHandler

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.