|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.acsinet_solutions.cetia4.http.SimpleHttpCommandProcessor
public class SimpleHttpCommandProcessor
Simple implmentation of a command processor on services that require no authentication. Jakarta Commons HTTPClient is used internally.
| Constructor Summary | |
|---|---|
SimpleHttpCommandProcessor()
Default constructor |
|
SimpleHttpCommandProcessor(java.lang.String base)
Constructor that receives the base path |
|
| Method Summary | |
|---|---|
protected int |
execute(org.apache.commons.httpclient.HttpClient client,
HttpCommand command,
java.io.OutputStream ostream)
Execute the HTTP request and return it's results. |
int |
execute(HttpCommand command,
java.io.OutputStream ostream)
Execute the command request and write the result's contents to the given output stream. |
protected java.lang.String |
getBase()
Get the reference to the base path for subclasses |
void |
setBase(java.lang.String base)
Sets the basic url prepended to requests. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SimpleHttpCommandProcessor()
public SimpleHttpCommandProcessor(java.lang.String base)
| Method Detail |
|---|
public final void setBase(java.lang.String base)
public int execute(HttpCommand command,
java.io.OutputStream ostream)
throws java.io.IOException
HttpCommandProcessor
execute in interface HttpCommandProcessorostream - The stream where to write the response; may be null.
java.io.IOException
protected final int execute(org.apache.commons.httpclient.HttpClient client,
HttpCommand command,
java.io.OutputStream ostream)
throws java.io.IOException
java.io.IOExceptionprotected final java.lang.String getBase()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||