org.apache.servicemix.http.endpoints
Class DefaultHttpProviderMarshaler

java.lang.Object
  extended by org.apache.servicemix.http.endpoints.DefaultHttpProviderMarshaler
All Implemented Interfaces:
HttpProviderMarshaler

public class DefaultHttpProviderMarshaler
extends Object
implements HttpProviderMarshaler

Default marshaler used for non-soap provider endpoints.

Since:
3.2
Author:
gnodet

Constructor Summary
DefaultHttpProviderMarshaler()
           
 
Method Summary
 void createRequest(javax.jbi.messaging.MessageExchange exchange, javax.jbi.messaging.NormalizedMessage inMsg, SmxHttpExchange httpExchange)
           
 String getContentType()
           
protected  String getContentType(javax.jbi.messaging.MessageExchange exchange, javax.jbi.messaging.NormalizedMessage inMsg)
           
 org.apache.servicemix.expression.Expression getContentTypeExpression()
           
 Map<String,String> getHeaders()
           
 String getLocationURI()
           
protected  String getLocationUri(javax.jbi.messaging.MessageExchange exchange, javax.jbi.messaging.NormalizedMessage inMsg)
           
 org.apache.servicemix.expression.Expression getLocationURIExpression()
           
 String getMethod()
           
protected  String getMethod(javax.jbi.messaging.MessageExchange exchange, javax.jbi.messaging.NormalizedMessage inMsg)
           
 org.apache.servicemix.expression.Expression getMethodExpression()
           
 void handleException(javax.jbi.messaging.MessageExchange exchange, SmxHttpExchange httpExchange, Throwable ex)
           
 void handleResponse(javax.jbi.messaging.MessageExchange exchange, SmxHttpExchange httpExchange)
           
 void setContentType(String contentType)
           
 void setContentTypeExpression(org.apache.servicemix.expression.Expression contentTypeExpression)
           
 void setHeaders(Map<String,String> headers)
           
 void setLocationURI(String locationUri)
           
 void setLocationURIExpression(org.apache.servicemix.expression.Expression locationUriExpression)
           
 void setMethod(String method)
           
 void setMethodExpression(org.apache.servicemix.expression.Expression methodExpression)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultHttpProviderMarshaler

public DefaultHttpProviderMarshaler()
Method Detail

getLocationURI

public String getLocationURI()

setLocationURI

public void setLocationURI(String locationUri)

getLocationURIExpression

public org.apache.servicemix.expression.Expression getLocationURIExpression()

setLocationURIExpression

public void setLocationURIExpression(org.apache.servicemix.expression.Expression locationUriExpression)

getMethod

public String getMethod()

setMethod

public void setMethod(String method)

getMethodExpression

public org.apache.servicemix.expression.Expression getMethodExpression()

setMethodExpression

public void setMethodExpression(org.apache.servicemix.expression.Expression methodExpression)

getContentType

public String getContentType()

setContentType

public void setContentType(String contentType)

getContentTypeExpression

public org.apache.servicemix.expression.Expression getContentTypeExpression()

setContentTypeExpression

public void setContentTypeExpression(org.apache.servicemix.expression.Expression contentTypeExpression)

getHeaders

public Map<String,String> getHeaders()

setHeaders

public void setHeaders(Map<String,String> headers)

getLocationUri

protected String getLocationUri(javax.jbi.messaging.MessageExchange exchange,
                                javax.jbi.messaging.NormalizedMessage inMsg)
                         throws Exception
Throws:
Exception

getMethod

protected String getMethod(javax.jbi.messaging.MessageExchange exchange,
                           javax.jbi.messaging.NormalizedMessage inMsg)
                    throws Exception
Throws:
Exception

getContentType

protected String getContentType(javax.jbi.messaging.MessageExchange exchange,
                                javax.jbi.messaging.NormalizedMessage inMsg)
                         throws Exception
Throws:
Exception

createRequest

public void createRequest(javax.jbi.messaging.MessageExchange exchange,
                          javax.jbi.messaging.NormalizedMessage inMsg,
                          SmxHttpExchange httpExchange)
                   throws Exception
Specified by:
createRequest in interface HttpProviderMarshaler
Throws:
Exception

handleResponse

public void handleResponse(javax.jbi.messaging.MessageExchange exchange,
                           SmxHttpExchange httpExchange)
                    throws Exception
Specified by:
handleResponse in interface HttpProviderMarshaler
Throws:
Exception

handleException

public void handleException(javax.jbi.messaging.MessageExchange exchange,
                            SmxHttpExchange httpExchange,
                            Throwable ex)
Specified by:
handleException in interface HttpProviderMarshaler


Copyright © 2005-2008 Apache Software Foundation. All Rights Reserved.