|
|||||||||
| 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.Agent
com.cometway.ak.ServiceAgent
com.cometway.httpd.WebServerExtension
com.cometway.httpd.HTTPPutAgent
public class HTTPPutAgent
This agent can be loaded to support traditional HTTP Put functionality, saving files received to the specified "html_directory". You must specify this agent's service name for the "put_agent" property in the webserver. This agent can be easily replaced by a different RequestAgent for custom handling of HTTP Put requests.
| Field Summary |
|---|
| Fields inherited from class com.cometway.ak.Agent |
|---|
agent_id, agentController, CREATING_STATE, debugReporter, DESTROYED_STATE, DESTROYING_STATE, errorReporter, FAILED_STATE, printlnReporter, props, RUNNING_STATE, STARTING_STATE, STOPPED_STATE, STOPPING_STATE, warningReporter |
| Constructor Summary | |
|---|---|
HTTPPutAgent()
|
|
| Method Summary | |
|---|---|
java.io.File |
getFile(java.lang.String uri)
|
boolean |
handleRequest(HTTPAgentRequest req)
This will be called by the WebServer (specifically the ConnectionKMethod) to handle an HTTPAgentRequest. |
void |
initProps()
Override this method to initialize this agent's properties before it is started. |
void |
start()
This method inherited from com.cometway.ak.ServiceAgent includes functionality to register itself with the WebServer (temporary). |
| Methods inherited from class com.cometway.ak.ServiceAgent |
|---|
stop |
| Methods inherited from class com.cometway.ak.Agent |
|---|
currentStateEquals, debug, destroy, error, error, getAgentController, getDateTimeStr, getProps, getServiceImpl, getStateMachineModel, println, register, registerService, setAgentController, setProps, toString, unregister, unregisterService, warning, warning |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public HTTPPutAgent()
| Method Detail |
|---|
public void initProps()
Agent
initProps in interface AgentInterfaceinitProps in class Agentpublic void start()
WebServerExtension
start in interface AgentInterfacestart in class WebServerExtensionpublic java.io.File getFile(java.lang.String uri)
public boolean handleRequest(HTTPAgentRequest req)
WebServerExtension
handleRequest in class WebServerExtension
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||