org.codehaus.xfire.transport
Interface Channel

All Known Implementing Classes:
AbstractChannel, DelegatedChannel

public interface Channel

A channel for communication. This can be a channel on an underlying transport - like HTTP - or wrap another channel and provide additional functions - like reliable messaging.

Author:
Dan Diephouse

Field Summary
static java.lang.String BACKCHANNEL_URI
          The URI which represents that a message should be sent over a back channel, i.e.
static java.lang.String PASSWORD
           
static java.lang.String USERNAME
           
 
Method Summary
 void close()
           
 ChannelEndpoint getEndpoint()
           
 Transport getTransport()
           
 java.lang.String getUri()
           
 boolean isAsync()
           
 void open()
           
 void receive(MessageContext context, InMessage message)
           
 void send(MessageContext context, OutMessage message)
          Sends a message.
 void setEndpoint(ChannelEndpoint receiver)
           
 

Field Detail

BACKCHANNEL_URI

public static final java.lang.String BACKCHANNEL_URI
The URI which represents that a message should be sent over a back channel, i.e. an HttpServletResponse, instead of opening a new connection.

See Also:
Constant Field Values

USERNAME

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

PASSWORD

public static final java.lang.String PASSWORD
See Also:
Constant Field Values
Method Detail

open

public void open()
          throws java.lang.Exception
Throws:
java.lang.Exception

send

public void send(MessageContext context,
                 OutMessage message)
          throws XFireException
Sends a message.

Parameters:
context -
message -
Throws:
XFireException - Occurs if there was an error an error sending the message.

receive

public void receive(MessageContext context,
                    InMessage message)

setEndpoint

public void setEndpoint(ChannelEndpoint receiver)

getEndpoint

public ChannelEndpoint getEndpoint()

close

public void close()

getTransport

public Transport getTransport()

getUri

public java.lang.String getUri()
Returns:
The URI which represents this Channel's endpoint.

isAsync

public boolean isAsync()


Copyright © 2004-2006 null. All Rights Reserved.