Package com.eviware.soapui.model.propertyexpansion

Examples of com.eviware.soapui.model.propertyexpansion.DefaultPropertyExpansionContext


      cursor.beginElement( WSRM_IDENTIFIER, wsrmNamespace );
      cursor.insertChars( identifier );

      cursor.dispose();

      WsaUtils wsaUtils = new WsaUtils( object.xmlText(), soapVersion, null, new DefaultPropertyExpansionContext(
          startSequenceRequest ) );
      content = wsaUtils.addWSAddressingRequest( startSequenceRequest );

      startSequenceRequest.setRequestContent( content );
View Full Code Here


  @SuppressWarnings( "deprecation" )
  public static String expandPath( String path, RestParamsPropertyHolder params, RestRequestInterface request )
  {
    StringBuffer query = request.isPostQueryString() || "multipart/form-data".equals( request.getMediaType() ) ? null
        : new StringBuffer();
    DefaultPropertyExpansionContext context = new DefaultPropertyExpansionContext( request );

    for( int c = 0; c < params.getPropertyCount(); c++ )
    {
      RestParamProperty param = params.getPropertyAt( c );
View Full Code Here

    {
      Document dom = XmlUtils.parseXml( responseContent );
      try
      {
        responseWssResult = incomingResponseWss
            .processIncoming( dom, new DefaultPropertyExpansionContext( project ) );
        if( responseWssResult != null && responseWssResult.size() > 0 )
        {
          StringWriter writer = new StringWriter();
          XmlUtils.serialize( dom, writer );
          responseContent = writer.toString();
View Full Code Here

    if( incomingRequestWss != null )
    {
      Document dom = XmlUtils.parseXml( requestContent );
      try
      {
        requestWssResult = incomingRequestWss.processIncoming( dom, new DefaultPropertyExpansionContext( project ) );
        if( requestWssResult != null && requestWssResult.size() > 0 )
        {
          StringWriter writer = new StringWriter();
          XmlUtils.serialize( dom, writer );
          requestContent = writer.toString();
View Full Code Here

      if( UISupport.confirm( "Remove WS-A headers", "Remove WS-A headers" ) )
      {
        SoapVersion soapVersion = request.getOperation().getInterface().getSoapVersion();
        String content = request.getRequestContent();
        WsaUtils wsaUtils = new WsaUtils( content, soapVersion, request.getOperation(),
            new DefaultPropertyExpansionContext( request ) );
        content = wsaUtils.removeWSAddressing( request );
        request.setRequestContent( content );
      }
    }
    catch( Exception e1 )
View Full Code Here

  private final T modelItem;

  public AbstractSubmitContext( T modelItem )
  {
    this.modelItem = modelItem;
    this.properties = new DefaultPropertyExpansionContext( modelItem );

    setProperty( TestCaseRunContext.RUN_COUNT, 0 );
    setProperty( TestCaseRunContext.THREAD_INDEX, 0 );
  }
View Full Code Here

    this( modelItem );

    if( properties != null && properties.size() > 0 )
    {
      if( this.properties == null )
        this.properties = new DefaultPropertyExpansionContext( modelItem );

      this.properties.putAll( properties );
    }
  }
View Full Code Here

  }

  public void setProperty( String name, Object value )
  {
    if( properties == null )
      properties = new DefaultPropertyExpansionContext( modelItem );

    properties.put( name, value );
  }
View Full Code Here

        }
      }
    }

    if( properties == null )
      properties = new DefaultPropertyExpansionContext( modelItem );

    properties.put( name, value );
  }
View Full Code Here

public class PropertySupport
{
  public static void applySystemProperties( Object target, String scope, ModelItem modelItem )
  {
    PropertyDescriptor[] descriptors = PropertyUtils.getPropertyDescriptors( target );
    DefaultPropertyExpansionContext context = new DefaultPropertyExpansionContext( modelItem );
    Properties properties = System.getProperties();

    for( PropertyDescriptor descriptor : descriptors )
    {
      String name = descriptor.getName();
      String key = scope + "." + name;
      if( PropertyUtils.isWriteable( target, name ) && properties.containsKey( key ) )
      {
        try
        {
          String value = context.expand( String.valueOf( properties.get( key ) ) );
          BeanUtils.setProperty( target, name, value );
          SoapUI.log.info( "Set property [" + name + "] to [" + value + "] in scope [" + scope + "]" );
        }
        catch( Throwable e )
        {
View Full Code Here

TOP

Related Classes of com.eviware.soapui.model.propertyexpansion.DefaultPropertyExpansionContext

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.