|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ws4d.java.communication.monitor.MonitorStreamFactory
public abstract class MonitorStreamFactory
Factory which allows to create an OutputStream
to catch incoming
and outgoing data which allows the creation of Message
objects.
Field Summary | |
---|---|
static HashMap |
inMon
|
static HashMap |
outMon
|
Constructor Summary | |
---|---|
MonitorStreamFactory()
|
Method Summary | |
---|---|
abstract StreamMonitor |
createInputMonitor()
|
abstract StreamMonitor |
createOutputMonitor()
|
void |
discard(ProtocolData pd,
MonitoringContext context,
int discardReason)
Allows the assignment of a incoming discarded Message to a
previously given OutputStream . |
StreamMonitor |
getInputMonitor(ProtocolData pd)
Creates a StreamMonitor for incoming messages. |
MonitoringContext |
getMonitoringContextIn(ProtocolData pd)
|
MonitoringContext |
getMonitoringContextOut(ProtocolData pd)
|
MonitoringContext |
getNewMonitoringContextIn(ProtocolData pd)
|
MonitoringContext |
getNewMonitoringContextOut(ProtocolData pd)
|
StreamMonitor |
getOutputMonitor(ProtocolData pd)
Creates a StreamMonitor for outgoing messages. |
void |
linkIn(ProtocolData pd,
StreamMonitor mon)
Method which allows the link between the current Thread and
a StreamMonitor for an OutputStream . |
void |
linkOut(ProtocolData pd,
StreamMonitor mon)
Method which allows the link between the current Thread and
a StreamMonitor for an InputStream . |
void |
received(ProtocolData pd,
MonitoringContext context,
Message message)
Allows the assignment of a incoming Message to a previously
given OutputStream . |
void |
receivedFault(ProtocolData pd,
MonitoringContext context,
java.lang.Exception e)
Allows to inform the incoming monitor about a fault. |
void |
receivedResource(ProtocolData pd,
MonitoringContext context,
Resource r)
|
void |
requestResource(ProtocolData pd,
MonitoringContext context,
URI location)
|
void |
resetMonitoringContextIn(ProtocolData pd)
|
void |
resetMonitoringContextOut(ProtocolData pd)
|
void |
send(ProtocolData pd,
MonitoringContext context,
Message message)
Allows the assignment of a outgoing Message to a previously
given OutputStream . |
void |
sendFault(ProtocolData pd,
MonitoringContext context,
java.lang.Exception e)
Allows to inform the outgoing monitor about a fault. |
void |
sendResource(ProtocolData pd,
MonitoringContext context,
Resource r)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static HashMap inMon
public static HashMap outMon
Constructor Detail |
---|
public MonitorStreamFactory()
Method Detail |
---|
public abstract StreamMonitor createInputMonitor()
public abstract StreamMonitor createOutputMonitor()
public final StreamMonitor getInputMonitor(ProtocolData pd)
StreamMonitor
for incoming messages.
StreamMonitor
for incoming messages.public final StreamMonitor getOutputMonitor(ProtocolData pd)
StreamMonitor
for outgoing messages.
StreamMonitor
for outgoing messages.public final void resetMonitoringContextIn(ProtocolData pd)
public final void resetMonitoringContextOut(ProtocolData pd)
public final MonitoringContext getNewMonitoringContextIn(ProtocolData pd)
public final MonitoringContext getNewMonitoringContextOut(ProtocolData pd)
public final MonitoringContext getMonitoringContextIn(ProtocolData pd)
public final MonitoringContext getMonitoringContextOut(ProtocolData pd)
public final void linkIn(ProtocolData pd, StreamMonitor mon)
Thread
and
a StreamMonitor
for an OutputStream
.
pd
- the protocol data which will be used to identify the monitor.mon
- the stream monitorpublic final void linkOut(ProtocolData pd, StreamMonitor mon)
Thread
and
a StreamMonitor
for an InputStream
.
pd
- the protocol data which will be used to identify the monitor.mon
- the stream monitorpublic final void received(ProtocolData pd, MonitoringContext context, Message message)
Message
to a previously
given OutputStream
.
pd
- the protocol data which will be used to identify the monitor.message
- the message.public final void discard(ProtocolData pd, MonitoringContext context, int discardReason)
Message
to a
previously given OutputStream
.
pd
- the protocol data which will be used to identify the monitor.header
- the message header.public final void send(ProtocolData pd, MonitoringContext context, Message message)
Message
to a previously
given OutputStream
.
pd
- the protocol data which will be used to identify the monitor.message
- the message.public final void receivedFault(ProtocolData pd, MonitoringContext context, java.lang.Exception e)
pd
- the protocol data which will be used to identify the monitor.public final void sendFault(ProtocolData pd, MonitoringContext context, java.lang.Exception e)
pd
- the protocol data which will be used to identify the monitor.public final void sendResource(ProtocolData pd, MonitoringContext context, Resource r)
public final void requestResource(ProtocolData pd, MonitoringContext context, URI location)
public final void receivedResource(ProtocolData pd, MonitoringContext context, Resource r)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |