|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface StreamMonitor
This interfaces allows to assign the message and the given stream.
Method Summary | |
---|---|
void |
assign(MonitoringContext context,
Message message)
This method will be invoked by the framework if a message is finally built up and should be assigned to the OutputStream created
with the getOutputStream method. |
void |
discard(MonitoringContext context,
int discardReason)
|
void |
fault(MonitoringContext context,
java.lang.Exception e)
This is a fault method which will be invoked if the framework could not build a correct message object. |
MonitoringContext |
getMonitoringContext()
|
java.io.OutputStream |
getOutputStream()
A new and shiny OutputStream to write new bytes from
incoming or outgoing connections etc. |
void |
request(MonitoringContext context,
URI location)
|
void |
resource(MonitoringContext context,
Resource resource)
|
void |
setMonitoringContext(MonitoringContext context)
|
Method Detail |
---|
java.io.OutputStream getOutputStream()
OutputStream
to write new bytes from
incoming or outgoing connections etc.
Remember: This method should always return the same
OutputStream
for an individual StreamMonitor
because it is used in different parts of the framework.
OutputStream
.void setMonitoringContext(MonitoringContext context)
MonitoringContext getMonitoringContext()
void assign(MonitoringContext context, Message message)
OutputStream
created
with the getOutputStream
method.
message
- the message which should be assigned to the
OutputStream
void fault(MonitoringContext context, java.lang.Exception e)
assign
method, but points to a fault while the message is created.
void discard(MonitoringContext context, int discardReason)
void resource(MonitoringContext context, Resource resource)
void request(MonitoringContext context, URI location)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |