|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.cometway.props.Props
com.cometway.ak.AgentMessage
com.cometway.ak.AgentRequest
public class AgentRequest
Represents a concrete data class used to pass information to and from agents that implement the RequestAgentInterface.
| Field Summary | |
|---|---|
protected java.io.OutputStream |
err
|
protected java.io.OutputStream |
out
|
protected java.io.PrintWriter |
writer
|
| Fields inherited from class com.cometway.ak.AgentMessage |
|---|
props |
| Constructor Summary | |
|---|---|
AgentRequest()
Creates a request instance using its own Props. |
|
AgentRequest(Props props)
Creates a request instance referencing the specified Props. |
|
AgentRequest(Props props,
java.io.OutputStream out)
Creates a request instance referencing the specified Props and standard OutputStream. |
|
AgentRequest(Props props,
java.io.OutputStream out,
java.io.OutputStream err)
Creates a request instance referencing the specified Props, standard OutputStream, and error OutputStream. |
|
| Method Summary | |
|---|---|
java.io.OutputStream |
getErrorStream()
Returns a reference to the error OutputStream. |
java.io.OutputStream |
getOutputStream()
Returns a reference to the standard OutputStream. |
java.lang.String |
getRequestType()
Returns the type assigned to this request by its sender. |
java.io.Writer |
getWriter()
Returns a reference to the Writer assigned to this request. |
boolean |
isRequestType(java.lang.String request_type)
Returns true if this request's type matches the specified type; false otherwise. |
void |
print(java.lang.String s)
Prints the String to the agent's standard OutputStream using a PrintWriter. |
void |
println()
Prints a newline to the agent's standard OutputStream using a PrintWriter. |
void |
println(java.lang.String s)
Prints the String followed by a newline to the agent's standard OutputStream using a PrintWriter. |
void |
setContentType(java.lang.String type)
Specifies the content type for output to the standard OutputStream. |
| Methods inherited from class com.cometway.ak.AgentMessage |
|---|
getProps |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected java.io.OutputStream out
protected java.io.OutputStream err
protected java.io.PrintWriter writer
| Constructor Detail |
|---|
public AgentRequest()
public AgentRequest(Props props)
public AgentRequest(Props props,
java.io.OutputStream out)
public AgentRequest(Props props,
java.io.OutputStream out,
java.io.OutputStream err)
| Method Detail |
|---|
public java.io.OutputStream getErrorStream()
public java.io.OutputStream getOutputStream()
public java.lang.String getRequestType()
public java.io.Writer getWriter()
public boolean isRequestType(java.lang.String request_type)
public void print(java.lang.String s)
public void println()
public void println(java.lang.String s)
public void setContentType(java.lang.String type)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||