org.apache.camel.component.http.helper
Class HttpProducerHelper

java.lang.Object
  extended by org.apache.camel.component.http.helper.HttpProducerHelper

public final class HttpProducerHelper
extends Object

Helper methods for HTTP producers.

Version:
$Revision: 833429 $

Method Summary
static HttpMethods createMethod(Exchange exchange, HttpEndpoint endpoint, boolean hasPayload)
          Creates the HttpMethod to use to call the remote server, often either its GET or POST.
static String createURL(Exchange exchange, HttpEndpoint endpoint)
          Creates the URL to invoke.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createURL

public static String createURL(Exchange exchange,
                               HttpEndpoint endpoint)
Creates the URL to invoke.

Parameters:
exchange - the exchange
endpoint - the endpoint
Returns:
the URL to invoke

createMethod

public static HttpMethods createMethod(Exchange exchange,
                                       HttpEndpoint endpoint,
                                       boolean hasPayload)
Creates the HttpMethod to use to call the remote server, often either its GET or POST.

Parameters:
exchange - the exchange
Returns:
the created method


Copyright © 2007-2009 The Apache Software Foundation. All Rights Reserved.