public void deployToRegistry(WSDDDeployment registry) { if (getQName() != null) registry.addHandler(this); for (int n = 0; n < handlers.size(); n++) { WSDDHandler handler = (WSDDHandler)handlers.get(n); if (handler.getQName() != null) handler.deployToRegistry(registry); } } }
/** * Return an instance of the named handler. * * @param name the name of the handler to get * @return an Axis handler with the specified QName or null of not found */ public Handler getHandler(QName name) throws ConfigurationException { WSDDHandler h = (WSDDHandler) handlers.get(name); if (h != null) { return h.getInstance(this); } return null; }
public void writeToContext(SerializationContext context) throws IOException { AttributesImpl attrs = new AttributesImpl(); QName name = getQName(); if (name != null) { attrs.addAttribute("", ATTR_NAME, ATTR_NAME, "CDATA", context.qName2String(name)); } attrs.addAttribute("", ATTR_TYPE, ATTR_TYPE, "CDATA", context.qName2String(getType())); context.startElement(WSDDConstants.QNAME_HANDLER, attrs); writeParamsToContext(context); context.endElement(); }
/** * Creates a new instance of this Chain * @param registry XXX * @return XXX * @throws ConfigurationException XXX */ public Handler makeNewInstance(EngineConfiguration registry) throws ConfigurationException { Chain c = new org.apache.axis.SimpleChain(); for (int n = 0; n < handlers.size(); n++) { WSDDHandler handler = (WSDDHandler)handlers.get(n); Handler h = handler.getInstance(registry); if ( h != null ) c.addHandler(h); else throw new ConfigurationException("Can't find handler name:'" + handler.getQName() + "' type:'"+ handler.getType() + "' in the registry"); } return c; }
public void writeToContext(SerializationContext context) throws IOException { context.registerPrefixForURI(NS_PREFIX_WSDD, URI_WSDD); context.registerPrefixForURI(NS_PREFIX_WSDD_JAVA, URI_WSDD_JAVA); context.startElement(QNAME_DEPLOY, null); if (globalConfig != null) { globalConfig.writeToContext(context); } Iterator i = handlers.values().iterator(); while (i.hasNext()) { WSDDHandler handler = (WSDDHandler) i.next(); handler.writeToContext(context); } i = services.values().iterator(); while (i.hasNext()) { WSDDService service = (WSDDService) i.next(); service.writeToContext(context); } i = transports.values().iterator(); while (i.hasNext()) { WSDDTransport transport = (WSDDTransport) i.next(); transport.writeToContext(context); } i = typeMappings.values().iterator(); while (i.hasNext()) { WSDDTypeMapping mapping = (WSDDTypeMapping) i.next(); mapping.writeToContext(context); } context.endElement(); }
if (elements.length != 0) { for (int i = 0; i < elements.length; i++) { WSDDHandler handler = new WSDDHandler(elements[i]); addHandler(handler);
/** * Put a WSDDHandler into this deployment, replacing any other * WSDDHandler which might already be present with the same QName. * * @param handler a WSDDHandler to insert in this deployment */ public void deployHandler(WSDDHandler handler) { handler.deployToRegistry(this); }
protected void addHandler(WSDDHandler handler) { handlers.put(handler.getQName(), handler); }
/** * Creates a new instance of this Chain * @param registry XXX * @return XXX * @throws ConfigurationException XXX */ public Handler makeNewInstance(EngineConfiguration registry) throws ConfigurationException { Chain c = new org.apache.axis.SimpleChain(); for (int n = 0; n < handlers.size(); n++) { WSDDHandler handler = (WSDDHandler)handlers.get(n); Handler h = handler.getInstance(registry); if ( h != null ) c.addHandler(h); else throw new ConfigurationException("Can't find handler name:'" + handler.getQName() + "' type:'"+ handler.getType() + "' in the registry"); } return c; }
public void writeToContext(SerializationContext context) throws IOException { context.registerPrefixForURI(NS_PREFIX_WSDD, URI_WSDD); context.registerPrefixForURI(NS_PREFIX_WSDD_JAVA, URI_WSDD_JAVA); context.startElement(QNAME_DEPLOY, null); if (globalConfig != null) { globalConfig.writeToContext(context); } Iterator i = handlers.values().iterator(); while (i.hasNext()) { WSDDHandler handler = (WSDDHandler) i.next(); handler.writeToContext(context); } i = services.values().iterator(); while (i.hasNext()) { WSDDService service = (WSDDService) i.next(); service.writeToContext(context); } i = transports.values().iterator(); while (i.hasNext()) { WSDDTransport transport = (WSDDTransport) i.next(); transport.writeToContext(context); } i = typeMappings.values().iterator(); while (i.hasNext()) { WSDDTypeMapping mapping = (WSDDTypeMapping) i.next(); mapping.writeToContext(context); } context.endElement(); }
if (elements.length != 0) { for (int i = 0; i < elements.length; i++) { WSDDHandler handler = new WSDDHandler(elements[i]); addHandler(handler);
/** * Put a WSDDHandler into this deployment, replacing any other * WSDDHandler which might already be present with the same QName. * * @param handler a WSDDHandler to insert in this deployment */ public void deployHandler(WSDDHandler handler) { handler.deployToRegistry(this); }
protected void addHandler(WSDDHandler handler) { handlers.put(handler.getQName(), handler); }
public void writeToContext(SerializationContext context) throws IOException { AttributesImpl attrs = new AttributesImpl(); QName name = getQName(); if (name != null) { attrs.addAttribute("", ATTR_NAME, ATTR_NAME, "CDATA", context.qName2String(name)); } attrs.addAttribute("", ATTR_TYPE, ATTR_TYPE, "CDATA", context.qName2String(getType())); context.startElement(WSDDConstants.QNAME_HANDLER, attrs); writeParamsToContext(context); context.endElement(); }
/** * Creates a new instance of this Chain * @param registry XXX * @return XXX * @throws ConfigurationException XXX */ public Handler makeNewInstance(EngineConfiguration registry) throws ConfigurationException { Chain c = new org.apache.axis.SimpleChain(); for (int n = 0; n < handlers.size(); n++) { WSDDHandler handler = (WSDDHandler)handlers.get(n); Handler h = handler.getInstance(registry); if ( h != null ) c.addHandler(h); else throw new ConfigurationException("Can't find handler name:'" + handler.getQName() + "' type:'"+ handler.getType() + "' in the registry"); } return c; }
public void deployToRegistry(WSDDDeployment registry) { if (getQName() != null) registry.addHandler(this); for (int n = 0; n < handlers.size(); n++) { WSDDHandler handler = (WSDDHandler)handlers.get(n); if (handler.getQName() != null) handler.deployToRegistry(registry); } } }
public void writeToContext(SerializationContext context) throws IOException { context.registerPrefixForURI(NS_PREFIX_WSDD, URI_WSDD); context.registerPrefixForURI(NS_PREFIX_WSDD_JAVA, URI_WSDD_JAVA); context.startElement(QNAME_DEPLOY, null); if (globalConfig != null) { globalConfig.writeToContext(context); } Iterator i = handlers.values().iterator(); while (i.hasNext()) { WSDDHandler handler = (WSDDHandler) i.next(); handler.writeToContext(context); } i = services.values().iterator(); while (i.hasNext()) { WSDDService service = (WSDDService) i.next(); service.writeToContext(context); } i = transports.values().iterator(); while (i.hasNext()) { WSDDTransport transport = (WSDDTransport) i.next(); transport.writeToContext(context); } i = typeMappings.values().iterator(); while (i.hasNext()) { WSDDTypeMapping mapping = (WSDDTypeMapping) i.next(); mapping.writeToContext(context); } context.endElement(); }
if (elements.length != 0) { for (int i = 0; i < elements.length; i++) { WSDDHandler handler = new WSDDHandler(elements[i]); addHandler(handler);
/** * Put a WSDDHandler into this deployment, replacing any other * WSDDHandler which might already be present with the same QName. * * @param handler a WSDDHandler to insert in this deployment */ public void deployHandler(WSDDHandler handler) { handler.deployToRegistry(this); }
/** * Return an instance of the named handler. * * @param name the name of the handler to get * @return an Axis handler with the specified QName or null of not found */ public Handler getHandler(QName name) throws ConfigurationException { WSDDHandler h = (WSDDHandler) handlers.get(name); if (h != null) { return h.getInstance(this); } return null; }