org.codehaus.xfire.transport.http
Class SimpleMessageSender

java.lang.Object
  extended by org.codehaus.xfire.transport.http.AbstractMessageSender
      extended by org.codehaus.xfire.transport.http.SimpleMessageSender

public class SimpleMessageSender
extends AbstractMessageSender

Sends a message via the JDK HTTP URLConnection. This is very buggy. Drop commons-httpclient on your classpath and XFire will use CommonsHttpMessageSender instead.

Since:
Oct 26, 2004
Author:
Dan Diephouse

Field Summary
 
Fields inherited from class org.codehaus.xfire.transport.http.AbstractMessageSender
MESSAGE_SENDER_CLASS_NAME
 
Constructor Summary
SimpleMessageSender(OutMessage message, MessageContext context)
           
 
Method Summary
 void close()
           
 InMessage getInMessage()
           
 java.io.OutputStream getOutputStream()
           
 int getStatusCode()
          Returns 0 if no error returned from server.
 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
 

Constructor Detail

SimpleMessageSender

public SimpleMessageSender(OutMessage message,
                           MessageContext context)
Method Detail

open

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

getOutputStream

public java.io.OutputStream getOutputStream()
                                     throws java.io.IOException,
                                            XFireFault
Throws:
java.io.IOException
XFireFault

getInMessage

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

close

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

hasResponse

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

send

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

getStatusCode

public int getStatusCode()
Description copied from class: AbstractMessageSender
Returns 0 if no error returned from server. Error code in otherway.

Specified by:
getStatusCode in class AbstractMessageSender
Returns:


Copyright © 2004-2009. All Rights Reserved.