aktbus.core
Class AktMessageWithExtra

java.lang.Object
  |
  +--aktbus.core.AktMessageWithExtra

public class AktMessageWithExtra
extends java.lang.Object

The AktMessageWithExtra class is used to encapsulate information in an HTTP request, which usually contains a request path and an AktMessage in its body. In additional to this, it contains 3 other optional fields: a client socket, an input stream & an output stream. These 3 optional fields are only valid when the sender expects a piggy-packed reply.


Field Summary
 java.io.BufferedReader in_stream
          The input stream where the incoming request is read.
 aktbus.core.AktMessageInterface message
          The AktMessage object in a HTTP request.
 java.io.PrintWriter out_stream
          The output stream for send a piggy-packed reply.
 java.lang.String path
          The request path in a HTTP request.
 
Constructor Summary
AktMessageWithExtra()
           
 
Method Summary
 void close_connection()
          Close all socket & streams.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

message

public aktbus.core.AktMessageInterface message
The AktMessage object in a HTTP request.


path

public java.lang.String path
The request path in a HTTP request.


in_stream

public java.io.BufferedReader in_stream
The input stream where the incoming request is read.


out_stream

public java.io.PrintWriter out_stream
The output stream for send a piggy-packed reply.

Constructor Detail

AktMessageWithExtra

public AktMessageWithExtra()
Method Detail

close_connection

public void close_connection()
Close all socket & streams.