Package com.eviware.soapui.impl.wsdl.submit.transports.http.support.methods

Examples of com.eviware.soapui.impl.wsdl.submit.transports.http.support.methods.ExtendedGetMethod


    // for this create ui server and port, properties.
    InetSocketAddress inetAddress = new InetSocketAddress( sslEndPoint, sslPort );
    HttpServletRequest httpRequest = ( HttpServletRequest )request;
    if( httpRequest.getMethod().equals( "GET" ) )
      postMethod = new ExtendedGetMethod();
    else
      postMethod = new ExtendedPostMethod();

    JProxyServletWsdlMonitorMessageExchange capturedData = new JProxyServletWsdlMonitorMessageExchange( project );
    capturedData.setRequestHost( httpRequest.getRemoteHost() );
View Full Code Here


      return;

    ExtendedHttpMethod method;
    HttpServletRequest httpRequest = ( HttpServletRequest )request;
    if( httpRequest.getMethod().equals( "GET" ) )
      method = new ExtendedGetMethod();
    else
      method = new ExtendedPostMethod();

    method.setDecompress( false );
View Full Code Here

      httpClient.executeMethod( hostConfiguration, httpMethod, httpState );
      httpMethod.getTimeTaken();

      if( isRedirectResponse( httpMethod ) && httpRequest.isFollowRedirects() )
      {
        ExtendedGetMethod returnMethod = followRedirects( httpClient, 0, httpMethod, httpState );
        httpMethod.releaseConnection();
        httpMethod = returnMethod;
        submitContext.setProperty( HTTP_METHOD, httpMethod );
      }
    }
View Full Code Here

  }

  private ExtendedGetMethod followRedirects( HttpClient httpClient, int redirectCount, ExtendedHttpMethod httpMethod,
      HttpState httpState ) throws Exception
  {
    ExtendedGetMethod getMethod = new ExtendedGetMethod();
    for( Header header : httpMethod.getRequestHeaders() )
      getMethod.addRequestHeader( header );

    URI uri = new URI( httpMethod.getResponseHeader( "Location" ).getValue(), true );
    getMethod.setURI( uri );
    HostConfiguration host = new HostConfiguration();
    host.setHost( uri );
    httpClient.executeMethod( host, getMethod, httpState );
    if( isRedirectResponse( getMethod ) )
    {
      if( redirectCount == 10 )
        throw new Exception( "Maximum number of Redirects reached [10]" );

      try
      {
        return followRedirects( httpClient, redirectCount + 1, getMethod, httpState );
      }
      finally
      {
        getMethod.releaseConnection();
      }
    }
    else
      return getMethod;
View Full Code Here

    {
      HttpRequestInterface<?> restRequest = ( HttpRequestInterface<?> )httpRequest;
      switch( restRequest.getMethod() )
      {
      case GET :
        return new ExtendedGetMethod();
      case HEAD :
        return new ExtendedHeadMethod();
      case DELETE :
        return new ExtendedDeleteMethod();
      case PUT :
View Full Code Here

        // for this create ui server and port, properties.
        InetSocketAddress inetAddress = new InetSocketAddress(sslEndPoint, sslPort);
        HttpServletRequest httpRequest = (HttpServletRequest) request;
        if (httpRequest.getMethod().equals("GET")) {
            postMethod = new ExtendedGetMethod();
        } else {
            postMethod = new ExtendedPostMethod();
        }

        JProxyServletWsdlMonitorMessageExchange capturedData = new JProxyServletWsdlMonitorMessageExchange(project);
View Full Code Here

    @Before
    public void setup() {
        clearProxySystemProperties();

        httpMethod = new ExtendedGetMethod();
    }
View Full Code Here

TOP

Related Classes of com.eviware.soapui.impl.wsdl.submit.transports.http.support.methods.ExtendedGetMethod

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.