Share

Redstone XML-RPC Library

The forum address has changed, you have been automatically redirected. Please update any bookmarks to use the new URL.

Subscribe

Casting (inheritance)

You are viewing a single message from this topic. View all messages.

  1. 2009-01-12 10:45:58 UTC
    I want to limit the amount of data sent to the client. I did this by doing, for example

    public class Project extends RPCProject
    {
    private String someVarUsedInternally;
    }

    public class RPCProject
    {
    protected String what;
    protected int I;
    protected ArrayList want;
    protected String client;
    protected String toSee;
    }

    // RPC Exposed method
    public RPCProject getProject()
    {
    return (RPCProject)projectInQuestion;
    }


    However, it seems to return the 'someVarUsedInternally' too..Any ideas?
< Previous | 1 | Next >

Add a Reply

This forum does not allow anonymous participation.

Log in to add a reply. Not registered? Create an account to participate and receive email updates when replies are posted to this topic.