org.codehaus.xfire.transport.http
Class CommonsHttpMessageSender

java.lang.Object
  extended byorg.codehaus.xfire.transport.http.AbstractMessageSender
      extended byorg.codehaus.xfire.transport.http.CommonsHttpMessageSender

public class CommonsHttpMessageSender
extends AbstractMessageSender

Sends a http message via commons http client. To customize the HttpClient parameters, set the property HTTP_CLIENT_PARAMS on the MessageContext for your invocation.

Since:
Oct 26, 2004
Author:
Dan Diephouse

Field Summary
static java.lang.String HTTP_CLIENT_PARAMS
           
static java.lang.String HTTP_PROXY_HOST
           
static java.lang.String HTTP_PROXY_PORT
           
static java.lang.String USER_AGENT
           
 
Constructor Summary
CommonsHttpMessageSender(OutMessage message, MessageContext context)
           
 
Method Summary
 void close()
           
 InMessage getInMessage()
           
 org.apache.commons.httpclient.methods.PostMethod getMethod()
           
 boolean hasResponse()
           
 void open()
           
 void send()
           
 
Methods inherited from class org.codehaus.xfire.transport.http.AbstractMessageSender
getEncoding, getMessage, getMessageContext, getQuotedSoapAction, getSoapAction, getUri, setMessage, setMessageContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

HTTP_CLIENT_PARAMS

public static final java.lang.String HTTP_CLIENT_PARAMS
See Also:
Constant Field Values

USER_AGENT

public static final java.lang.String USER_AGENT
See Also:
Constant Field Values

HTTP_PROXY_HOST

public static final java.lang.String HTTP_PROXY_HOST
See Also:
Constant Field Values

HTTP_PROXY_PORT

public static final java.lang.String HTTP_PROXY_PORT
See Also:
Constant Field Values
Constructor Detail

CommonsHttpMessageSender

public CommonsHttpMessageSender(OutMessage message,
                                MessageContext context)
Method Detail

open

public void open()
          throws java.io.IOException,
                 XFireException
Specified by:
open in class AbstractMessageSender
Throws:
java.io.IOException
XFireException

send

public void send()
          throws org.apache.commons.httpclient.HttpException,
                 java.io.IOException,
                 XFireException
Specified by:
send in class AbstractMessageSender
Throws:
org.apache.commons.httpclient.HttpException
java.io.IOException
XFireException

hasResponse

public boolean hasResponse()
Specified by:
hasResponse in class AbstractMessageSender

getInMessage

public InMessage getInMessage()
                       throws java.io.IOException
Specified by:
getInMessage in class AbstractMessageSender
Throws:
java.io.IOException

getMethod

public org.apache.commons.httpclient.methods.PostMethod getMethod()

close

public void close()
           throws XFireException
Specified by:
close in class AbstractMessageSender
Throws:
XFireException


Copyright © 2004-2006 null. All Rights Reserved.