20 lines
522 B
Java
20 lines
522 B
Java
package org.hwo.net;
|
|
|
|
import java.io.IOException;
|
|
|
|
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);
|
|
|
|
public void climb(ServerObjectRequest request) throws IOException;
|
|
public void request(ServerObjectRequest request) throws IOException;
|
|
|
|
}
|