org.codehaus.xfire.transport
Interface Channel

All Known Implementing Classes:
AbstractChannel, DeadLetterChannel, DelegatedChannel, HttpChannel, LocalChannel, XFireServletChannel

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 String BACKCHANNEL_URI
          The URI which represents that a message should be sent over a back channel, i.e.
static String OUTPUTSTREAM
           
static String PASSWORD
           
static String USERNAME
           
 
Method Summary
 void close()
           
 ChannelEndpoint getEndpoint()
           
 Transport getTransport()
           
 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

static final 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

static final String USERNAME
See Also:
Constant Field Values

PASSWORD

static final String PASSWORD
See Also:
Constant Field Values

OUTPUTSTREAM

static final String OUTPUTSTREAM
See Also:
Constant Field Values
Method Detail

open

void open()
          throws Exception
Throws:
Exception

send

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

void receive(MessageContext context,
             InMessage message)

setEndpoint

void setEndpoint(ChannelEndpoint receiver)

getEndpoint

ChannelEndpoint getEndpoint()

close

void close()

getTransport

Transport getTransport()

getUri

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

isAsync

boolean isAsync()


Copyright © 2004-2013. All Rights Reserved.