All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.nakedobjects.nos.remote.command.socket.ServerConnection Maven / Gradle / Ivy

package org.nakedobjects.nos.remote.command.socket;

import java.io.IOException;

import org.nakedobjects.noa.NakedObjectRuntimeException;
import org.nakedobjects.nof.reflect.remote.data.Distribution;
import org.nakedobjects.nos.remote.command.Request;


public abstract class ServerConnection {
    private Distribution server;

    public ServerConnection(final Distribution server) {
        this.server = server;
    }

    protected abstract Request awaitRequest() throws IOException;
    
    public Distribution getServer() {
        return server;
    }

    protected abstract void sendError(NakedObjectRuntimeException exception) throws IOException;

    protected abstract void sendResponse(Object response) throws IOException;

}
// Copyright (c) Naked Objects Group Ltd.




© 2015 - 2025 Weber Informatics LLC | Privacy Policy