netbula.ORPC

Class ClientHTTP


public class ClientHTTP
extends RPCClient

Field Summary

Fields inherited from class netbula.ORPC.RPCClient

IPPROTO_TCP, IPPROTO_UDP

Constructor Summary

ClientHTTP(String gwurl, int prog, int ver)

Method Summary

void
call(int proc, XDT inarg, XDT outarg)
Call an RPC procedure.
boolean
close()
Close the connection to the RPC server.
boolean
connect()
Connect to the RPC server.
void
setServer(String rpcserv, int proto)
This method sets the real rpc server hostname and protocol.

Methods inherited from class netbula.ORPC.RPCClient

call, call_proc0, close, connect, finalize, getAuth, getRpcProgramNumber, getRpcProtocol, getRpcVersionNumber, setAuth, setConnectionTimeout, setRpcProgramNumber, setRpcProtocol, setRpcVersionNumber, setServer, setTimeout

Constructor Details

ClientHTTP

public ClientHTTP(String gwurl,
                  int prog,
                  int ver)
            throws rpc_err
Parameters:
gwurl - URL of the RPC gateway, this can be the tunnel CGI program, or the netbula.ORPC.RpcProxyServlet .
prog - Programmer number
ver - Version number

Method Details

call

public void call(int proc,
                 XDT inarg,
                 XDT outarg)
            throws rpc_err
Call an RPC procedure. This is an abstract method to be implemented for different RPC transports.
Overrides:
call in interface RPCClient
Parameters:
proc - Procedure number
inarg - Input argument to be sent over
outarg - Output argument to hold results from server

close

public boolean close()
Close the connection to the RPC server.
Overrides:
close in interface RPCClient

connect

public boolean connect()
Connect to the RPC server.
Overrides:
connect in interface RPCClient

setServer

public void setServer(String rpcserv,
                      int proto)
            throws rpc_err
This method sets the real rpc server hostname and protocol.
Overrides:
setServer in interface RPCClient
Parameters:
rpcserv - RPC server hostname
proto - Protocol, can be RPCClient.IPPROTO_TCP or RPCClient.IPPROTO_UDP