2014-05-15 03:29:32 +02:00
|
|
|
package org.hwo.net;
|
|
|
|
|
|
|
|
import java.io.IOException;
|
|
|
|
|
2014-09-09 23:53:13 +02:00
|
|
|
import org.hwo.net.http.HttpException;
|
2014-05-15 03:29:32 +02:00
|
|
|
import org.hwo.net.serverobjects.ServerObjectRequest;
|
|
|
|
|
|
|
|
public interface ServerObject {
|
|
|
|
|
|
|
|
public ServerObject getRootObject();
|
|
|
|
public ServerObject getParent();
|
|
|
|
public ServerObject[] getChildren();
|
|
|
|
public ServerObject getNamedChild(String childName);
|
|
|
|
|
|
|
|
public void addNamedChild(String childName,ServerObject serverObject);
|
|
|
|
|
2014-09-09 23:53:13 +02:00
|
|
|
public void climb(ServerObjectRequest request) throws IOException, HttpException;
|
|
|
|
public void request(ServerObjectRequest request) throws IOException, HttpException;
|
2014-05-15 03:29:32 +02:00
|
|
|
|
|
|
|
}
|