Package com.caucho.config

Examples of com.caucho.config.ConfigurationException


    throws ConfigurationException
  {
    super(service);

    if (_mode != Service.Mode.MESSAGE)
      throw new ConfigurationException(L.l("{0} implements Provider<SOAPMessage> must have @ServiceMode annotation with value Service.Mode == MESSAGE", _class.getName()));

    try {
      BindingType bindingType
        = (BindingType) _class.getAnnotation(BindingType.class);

      if (bindingType != null &&
          bindingType.value().equals(SOAPBinding.SOAP12HTTP_BINDING))
        _factory = MessageFactory.newInstance(SOAP_1_2_PROTOCOL);
      else
        _factory = MessageFactory.newInstance(SOAP_1_1_PROTOCOL);
    }
    catch (SOAPException e) {
      throw new ConfigurationException(e);
    }
  }
View Full Code Here


        _transformer.setOutputProperty(OutputKeys.OMIT_XML_DECLARATION, "yes");
        _transformer.setOutputProperty(OutputKeys.INDENT, "no");
      }
    }
    catch (TransformerConfigurationException e) {
      throw new ConfigurationException(e);
    }
   
    PortInfo portInfo = null;

    BindingType bindingType
View Full Code Here

          }
        }
      }
    }

    throw new ConfigurationException(L.l("Class {0} does not implement valid Provider", cl.getName()));
  }
View Full Code Here

    throws ConfigurationException
  {
    super(service);

    if (_mode != Service.Mode.MESSAGE)
      throw new ConfigurationException(L.l("{0} implements Provider<SOAPMessage> must have @ServiceMode annotation with value Service.Mode == MESSAGE", _class.getName()));

    try {
      BindingType bindingType
        = (BindingType) _class.getAnnotation(BindingType.class);

      if (bindingType != null &&
          bindingType.value().equals(SOAPBinding.SOAP12HTTP_BINDING))
        _factory = MessageFactory.newInstance(SOAP_1_2_PROTOCOL);
      else
        _factory = MessageFactory.newInstance(SOAP_1_1_PROTOCOL);
    }
    catch (SOAPException e) {
      throw new ConfigurationException(e);
    }
  }
View Full Code Here

        _transformer.setOutputProperty(OutputKeys.OMIT_XML_DECLARATION, "yes");
        _transformer.setOutputProperty(OutputKeys.INDENT, "no");
      }
    }
    catch (TransformerConfigurationException e) {
      throw new ConfigurationException(e);
    }
   
    PortInfo portInfo = null;

    BindingType bindingType
View Full Code Here

          }
        }
      }
    }

    throw new ConfigurationException(L.l("Class {0} does not implement valid Provider", cl.getName()));
  }
View Full Code Here

TOP

Related Classes of com.caucho.config.ConfigurationException

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.