org.codehaus.xfire.transport.http
Class SimpleMessageSender

java.lang.Object
  extended byorg.codehaus.xfire.transport.http.AbstractMessageSender
      extended byorg.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

Constructor Summary
SimpleMessageSender(OutMessage message, MessageContext context)
           
 
Method Summary
 void close()
           
 InMessage getInMessage()
           
 java.io.OutputStream getOutputStream()
           
 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


Copyright © 2004-2006 null. All Rights Reserved.