Package org.apache.cxf.transport.udp
Class UDPConduit
- java.lang.Object
-
- org.apache.cxf.transport.AbstractObservable
-
- org.apache.cxf.transport.AbstractConduit
-
- org.apache.cxf.transport.udp.UDPConduit
-
- All Implemented Interfaces:
Conduit,Observable
public class UDPConduit extends AbstractConduit
-
-
Field Summary
Fields Modifier and Type Field Description static StringNETWORK_INTERFACEFor broadcast/multicast, the specific network interface to use.-
Fields inherited from class org.apache.cxf.transport.AbstractConduit
target
-
Fields inherited from class org.apache.cxf.transport.AbstractObservable
incomingObserver
-
-
Constructor Summary
Constructors Constructor Description UDPConduit(org.apache.cxf.ws.addressing.EndpointReferenceType t, Bus bus)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Close the conduit.voidclose(Message msg)Close the connections associated with the messageprotected LoggergetLogger()voidprepare(Message message)Prepare the message for sending.-
Methods inherited from class org.apache.cxf.transport.AbstractConduit
getTarget, toString
-
Methods inherited from class org.apache.cxf.transport.AbstractObservable
activate, deactivate, getMessageObserver, getTargetReference, getTargetReference, setMessageObserver
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.cxf.transport.Observable
getMessageObserver, setMessageObserver
-
-
-
-
Field Detail
-
NETWORK_INTERFACE
public static final String NETWORK_INTERFACE
For broadcast/multicast, the specific network interface to use. This can either be a specific java.net.NetworkInterface or a string for NetworkInterface.getByName(String name)
-
-
Constructor Detail
-
UDPConduit
public UDPConduit(org.apache.cxf.ws.addressing.EndpointReferenceType t, Bus bus)
-
-
Method Detail
-
close
public void close(Message msg) throws IOException
Description copied from interface:ConduitClose the connections associated with the message- Specified by:
closein interfaceConduit- Overrides:
closein classAbstractConduit- Parameters:
msg- for which content should be closed.- Throws:
IOException
-
close
public void close()
Description copied from class:AbstractConduitClose the conduit.- Specified by:
closein interfaceConduit- Overrides:
closein classAbstractConduit
-
prepare
public void prepare(Message message) throws IOException
Description copied from interface:ConduitPrepare the message for sending. This will typically involve setting an OutputStream on the message, but it may do nothing at all.- Parameters:
message- the message to be sent.- Throws:
IOException
-
getLogger
protected Logger getLogger()
- Specified by:
getLoggerin classAbstractObservable- Returns:
- the logger to use
-
-