|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectjava.util.Observable
com.monkeycoder.monkeynetwork.Network
com.monkeycoder.monkeynetwork.HttpNetwork
public class HttpNetwork
This class handles an HTTP Network.
| Field Summary |
|---|
| Fields inherited from class com.monkeycoder.monkeynetwork.Network |
|---|
conAddr, inStream, outStream, sock, stateEngine |
| Constructor Summary | |
|---|---|
HttpNetwork()
Creates an HttpNetwork. |
|
| Method Summary | |
|---|---|
void |
fetch(java.lang.String inUri)
Fetches web content via the transport medium specified by this network. |
int |
getNetworkProtocol()
Get the protocol of this network object. |
void |
update(java.util.Observable inObservable,
java.lang.Object inArg)
Used by the network state engine to pass messages to this class. |
| Methods inherited from class com.monkeycoder.monkeynetwork.Network |
|---|
connect, disconnect, getContent, getEndpointHost, getEndpointPort, getInputStream, getOutputStream, isConnected, setEndpoint |
| Methods inherited from class java.util.Observable |
|---|
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HttpNetwork()
| Method Detail |
|---|
public int getNetworkProtocol()
getNetworkProtocol in class NetworkNetworkProtocol
public void fetch(java.lang.String inUri)
throws java.io.IOException,
MonkeyException
fetch in class NetworkinUri - The content being requested. This is a partial URI based
on the established connection.
java.io.IOException - When thrown by underlying network code.
MonkeyException - If the network is not yet connected.UpdateMessage
public void update(java.util.Observable inObservable,
java.lang.Object inArg)
update in interface java.util.Observerupdate in class NetworkinObservable - The observable object.inArg - The UpdateMessage passed to the notifyObservers method.UpdateMessage
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||