Package org.springframework.webflow.engine.builder

Examples of org.springframework.webflow.engine.builder.BinderConfiguration$Binding


   * @see org.apache.woden.wsdl20.extensions.soap.SOAPEndpointExtensions#getHttpAuthenticationRealm()
   */
  public String getHttpAuthenticationRealm() {

        Endpoint endpoint = (Endpoint) getParent();
        Binding binding = endpoint.getBinding();
        if(binding == null) {
            return null; //the wsdl is invalid TODO - remove this check? (extensions require valid wsdl?)
        }
       
        SOAPBindingExtensions soapBindExt = (SOAPBindingExtensions)binding
            .getComponentExtensionContext(SOAPConstants.NS_URI_SOAP);
        String version = soapBindExt.getSoapVersion();
        URI protocol = soapBindExt.getSoapUnderlyingProtocol();
        if(protocol == null) {
            return null;
View Full Code Here


     *
     */
    public String getHttpContentEncoding()
    {
        BindingOperation bindingOp = (BindingOperation) ((NestedComponent)getParent()).getParent();
        Binding binding = (Binding) bindingOp.getParent();
        SOAPBindingExtensions soapBindExt = (SOAPBindingExtensions)binding
           .getComponentExtensionContext(SOAPConstants.NS_URI_SOAP);
        String version = soapBindExt.getSoapVersion();
        URI protocol = soapBindExt.getSoapUnderlyingProtocol();
        if(protocol == null) {
            return null;
View Full Code Here

     * @see org.apache.woden.wsdl20.extensions.soap.SOAPBindingMessageReferenceExtensions#getHttpHeaders()
     */
    public HTTPHeader[] getHttpHeaders()
    {
        BindingOperation bindingOp = (BindingOperation) ((NestedComponent)getParent()).getParent();
        Binding binding = (Binding) bindingOp.getParent();
        SOAPBindingExtensions soapBindExt = (SOAPBindingExtensions)binding
           .getComponentExtensionContext(SOAPConstants.NS_URI_SOAP);
        String version = soapBindExt.getSoapVersion();
        URI protocol = soapBindExt.getSoapUnderlyingProtocol();
        if(protocol == null) {
            return new HTTPHeader[0];
View Full Code Here

    testAssertionBinding1049(bindings, errorReporter);
   
    int numBindings = bindings.length;
    for(int i = 0; i < numBindings; i++)
    {
      Binding binding = bindings[i];
      testAssertionBinding1044(binding, errorReporter);
      testAssertionBinding1045(binding, errorReporter);
      testAssertionBinding1048(binding, errorReporter);
     
      validateBindingOperations(binding.getBindingOperations(), desc, errorReporter);
     
      validateBindingFaults(binding.getBindingFaults(), desc, errorReporter);
    }
  }
View Full Code Here

   * @return True if the binding specified the interface specified by the service or no interface, false otherwise.
   * @throws WSDLException
   */
  protected boolean testAssertionEndpoint1062(Endpoint endpoint, ErrorReporter errorReporter) throws WSDLException
  {
  Binding binding = endpoint.getBinding();
  // If no binding has been specified this assertion does not apply.
  if(binding == null)
    return true;
 
  Interface bindingInterface = binding.getInterface();
  WSDLComponent parent = endpoint.getParent();
  if(parent != null)
  {
    Service service = (Service)parent;
    Interface serviceInterface = service.getInterface();
View Full Code Here

  /**
  * Test that the included binding matches the expected value parsed from the WSDL.
  */
public void testCheckWSDLInclude()
{
     Binding binding1 = fBindings[0];
   
     assertEquals("Unexpected binding name.", "{http://example.com/bank}BankSOAPBinding", binding1.getName().toString());
}
View Full Code Here

     * <code>getHttpQueryParameterSeparatorDefault</code> method matches the expected value parsed
     * from the WSDL.
     */
    public void testGetHttpQueryParameterSeparatorDefault()
    {
        Binding binding1 = fBindings[0];
        HTTPBindingExtensions httpBindExts = (HTTPBindingExtensions)binding1
            .getComponentExtensionContext(HTTPConstants.NS_URI_HTTP);
       
        String actual = httpBindExts.getHttpQueryParameterSeparatorDefault();
        assertNotNull("The value for http query parameter separator default was null", actual);
        assertEquals("Unexpected value for http query parameter separator default.",
View Full Code Here

     * from the WSDL.
     */
    public void testIsHttpCookies()
    {
        //test that a whttp:cookies value "true" equates to Boolean(true)
        Binding binding1 = fBindings[0];
        HTTPBindingExtensions httpBindExts = (HTTPBindingExtensions)binding1
            .getComponentExtensionContext(HTTPConstants.NS_URI_HTTP);
       
        assertTrue("Expected 'true' for for http cookies.",
                httpBindExts.isHttpCookies().booleanValue());
       
        //test that a whttp:cookies value "false" equates to Boolean(false)
        Binding binding3 = fBindings[2];
        httpBindExts = (HTTPBindingExtensions)binding3
            .getComponentExtensionContext(HTTPConstants.NS_URI_HTTP);
       
        assertFalse("Expected 'false' for for http cookies.",
                httpBindExts.isHttpCookies().booleanValue());
    }
View Full Code Here

     * <code>getContentEncodingDefault</code> method matches the expected value parsed
     * from the WSDL.
     */
    public void testGetHttpContentEncodingDefault()
    {
        Binding binding1 = fBindings[0];
        HTTPBindingExtensions httpBindExts = (HTTPBindingExtensions)binding1
            .getComponentExtensionContext(HTTPConstants.NS_URI_HTTP);
       
        String actual = httpBindExts.getHttpContentEncodingDefault();
        assertEquals("Unexpected value for http content encoding default.",
                "chunked",
View Full Code Here

     * Test that the OPTIONAL property {http content encoding default} defaults to null
     * when the whttp:contentEncodingDefault attribute is omitted from the WSDL.
     */
    public void testHttpPropertyDefaults()
    {
        Binding binding2 = fBindings[1];
        HTTPBindingExtensions httpBindExts = (HTTPBindingExtensions)binding2
            .getComponentExtensionContext(HTTPConstants.NS_URI_HTTP);
        assertNotNull("The Binding '" +
                binding2.getName() +
                "' does not contain an HTTPBindingExtensions object.");
       
        assertEquals("The {http query parameter separator default} property should default to ampersand '&'",
                "&",
                httpBindExts.getHttpQueryParameterSeparatorDefault());
View Full Code Here

TOP

Related Classes of org.springframework.webflow.engine.builder.BinderConfiguration$Binding

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.