Package com.eviware.soapui.support.types

Examples of com.eviware.soapui.support.types.StringToStringMap.containsKey()


          {
            XmlError xmlError = ( XmlError )error;
            String sourceName = xmlError.getSourceName();
            String message = xmlError.getMessage();

            if( !doubles.containsKey( message ) || !doubles.get( message ).equalsIgnoreCase( sourceName ) )
            {
              if( appended )
                result.append( "<hr>" );

              result.append( "<b>Source:</b> " ).append( sourceName ).append( "<br>" );
View Full Code Here


  {
    String requestContentType = headers.get( "Content-Type", "" );
    if( requestContentType != null )
    {
      StringToStringMap values = StringToStringMap.fromHttpHeader( requestContentType );
      if( values.containsKey( "charset" ) )
        return values.get( "charset" );
    }

    String contentEncodingHeader = headers.get( "Content-Encoding", "" );
    if( contentEncodingHeader != null )
View Full Code Here

      {
        String prefix = node.getPrefix();
        if( prefix == null || prefix.length() == 0 )
          prefix = "ns" + nsCnt++ ;

        while( !nsMap.containsKey( namespaceURI ) && nsMap.containsValue( prefix ) )
        {
          prefix = "ns" + nsCnt++ ;
        }

        nsMap.put( namespaceURI, prefix );
View Full Code Here

      {
        String prefix = node.getPrefix();
        if( prefix == null || prefix.length() == 0 )
          prefix = "ns" + nsCnt++ ;

        while( !nsMap.containsKey( namespaceURI ) && nsMap.containsValue( prefix ) )
        {
          prefix = "ns" + nsCnt++ ;
        }

        nsMap.put( namespaceURI, prefix );
View Full Code Here

    {
      MessageExchange me = ( ( MessageExchangeModelItem )messageExchange ).getMessageExchange();
      if( me != null )
      {
        StringToStringMap strmap = me.getProperties();
        if( strmap != null && strmap.containsKey( "Endpoint" ) )
        {
          String r = me.getProperty( "Endpoint" );
          return r != null && r.startsWith( JMSEndpoint.JMS_ENDPIONT_PREFIX );
        }
        else
View Full Code Here

    private static String getCharset(StringToStringsMap headers) {
        String requestContentType = headers.get("Content-Type", "");
        if (requestContentType != null) {
            StringToStringMap values = StringToStringMap.fromHttpHeader(requestContentType);
            if (values.containsKey("charset")) {
                return values.get("charset");
            }
        }

        String contentEncodingHeader = headers.get("Content-Encoding", "");
View Full Code Here

                    if (error instanceof XmlError) {
                        XmlError xmlError = (XmlError) error;
                        String sourceName = xmlError.getSourceName();
                        String message = xmlError.getMessage();

                        if (!doubles.containsKey(message) || !doubles.get(message).equalsIgnoreCase(sourceName)) {
                            if (appended) {
                                result.append("<hr>");
                            }

                            result.append("<b>Source:</b> ").append(sourceName).append("<br>");
View Full Code Here

    private static boolean checkIfJMS(MessageExchangeModelItem messageExchange) {
        try {
            MessageExchange me = ((MessageExchangeModelItem) messageExchange).getMessageExchange();
            if (me != null) {
                StringToStringMap strmap = me.getProperties();
                if (strmap != null && strmap.containsKey("Endpoint")) {
                    String r = me.getProperty("Endpoint");
                    return r != null && r.startsWith(JMSEndpoint.JMS_ENDPIONT_PREFIX);
                } else {
                    return false;
                }
View Full Code Here

            String pc;

            namespaceURI = node.getNamespaceURI();
            if (namespaceURI != null && namespaceURI.length() > 0) {
                String prefix = node.getPrefix();
                if (nsMap.containsKey(namespaceURI)) {
                    prefix = nsMap.get(namespaceURI);
                } else {
                    if (normalize || prefix == null || prefix.length() == 0) {
                        prefix = "ns" + nsCnt++;
                    }
View Full Code Here

                } else {
                    if (normalize || prefix == null || prefix.length() == 0) {
                        prefix = "ns" + nsCnt++;
                    }

                    while (!nsMap.containsKey(namespaceURI) && nsMap.containsValue(prefix)) {
                        prefix = "ns" + nsCnt++;
                    }

                    nsMap.put(namespaceURI, prefix);
                }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.