public class ClientDispatcher extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
DISPATCHER
Standard dispatcher servlet URL
|
| Constructor and Description |
|---|
ClientDispatcher(Applet anApplet,
String context)
Create a new dispatcher with an applet providing the URL.
|
ClientDispatcher(String aHost)
Create a new dispatcher.
|
| Modifier and Type | Method and Description |
|---|---|
protected ObjectInputStream |
createObjectInputStream(InputStream in)
Create an object input stream that wraps the URL connection stream.
|
protected ObjectOutputStream |
createObjectOutputStream(OutputStream out)
Create an object input stream that wraps the URL connection stream.
|
ActionResult |
execute(Action anAction)
Execute the action on the server.
|
String |
getHost() |
public static final String DISPATCHER
public ClientDispatcher(Applet anApplet, String context) throws MalformedURLException
MalformedURLExceptionpublic ClientDispatcher(String aHost)
aHost - The URL of the servlet handlerpublic String getHost()
public ActionResult execute(Action anAction) throws Exception
Exceptionprotected ObjectInputStream createObjectInputStream(InputStream in) throws IOException
in - the underlying stream. It is bufferedIOExceptionprotected ObjectOutputStream createObjectOutputStream(OutputStream out) throws IOException
out - The OutputStream to wrapIOExceptionCopyright © 2013 Atlassian. All Rights Reserved.