@Test public void addParam() { RpcRequest r = new RpcRequest("FOO/BAR"); RpcParam param = new RpcParam("baz"); r.addParam(param); assertEquals(1, r.getParams().size()); assertSame(param, r.getParams().get(0)); }
public RpcRequest addParam(RpcParam rpcParam) { params.add(rpcParam); return this; }
RpcRequest implements Serializable { public RpcRequest addParam(RpcParam rpcParam) { params.add(rpcParam); return this; } }
RpcRequest implements Serializable { public RpcRequest addParam(RpcParam rpcParam) { params.add(rpcParam); return this; } RpcRequest(String uri);  RpcRequest(String uri, Object... params);  RpcRequest(String uri, List params);  RpcRequest(RpcHost host, String credentials, RpcRequest request);  RpcRequest(RpcHost host, String credentials, String rpcContext, String rpcName);  RpcRequest(RpcHost host, String credentials, String rpcContext, String rpcName, Object... params);  RpcRequest(RpcHost host, String credentials, String rpcContext, String rpcName, List params); }
RpcRequest implements Serializable { public RpcRequest addParam(RpcParam rpcParam) { params.add(rpcParam); return this; } RpcRequest(String uri);  RpcRequest(String uri, Object... params);  RpcRequest(String uri, List params);  RpcRequest(RpcHost host, String credentials, RpcRequest request);  RpcRequest(RpcHost host, String credentials, String rpcContext, String rpcName);  RpcRequest(RpcHost host, String credentials, String rpcContext, String rpcName, Object... params);  RpcRequest(RpcHost host, String credentials, String rpcContext, String rpcName, List params); @Deprecated URI getURI(); String getUriString(); UriComponents getUriComponents(); RpcHost getHost(); @JsonSerialize(using = SanitizeCredentialsSerializer.class) String getCredentials(); String getRpcContext(); String getRpcName(); List<RpcParam> getParams(); String getRpcVersion(); void setRpcVersion(String rpcVersion); int getTimeout(); void setTimeout(int timeout); RpcRequest addParam(RpcParam rpcParam); RpcRequest addParam(String literal); RpcRequest addParam(Map m); RpcRequest addParam(List l); RpcRequest addParam(Object o); boolean isAbsolute(); @Override String toString(); @Override boolean equals(Object o); @Override int hashCode(); }
RpcRequest implements Serializable { public RpcRequest addParam(RpcParam rpcParam) { params.add(rpcParam); return this; } RpcRequest(String uri);  RpcRequest(String uri, Object... params);  RpcRequest(String uri, List params);  RpcRequest(RpcHost host, String credentials, RpcRequest request);  RpcRequest(RpcHost host, String credentials, String rpcContext, String rpcName);  RpcRequest(RpcHost host, String credentials, String rpcContext, String rpcName, Object... params);  RpcRequest(RpcHost host, String credentials, String rpcContext, String rpcName, List params); @Deprecated URI getURI(); String getUriString(); UriComponents getUriComponents(); RpcHost getHost(); @JsonSerialize(using = SanitizeCredentialsSerializer.class) String getCredentials(); String getRpcContext(); String getRpcName(); List<RpcParam> getParams(); String getRpcVersion(); void setRpcVersion(String rpcVersion); int getTimeout(); void setTimeout(int timeout); RpcRequest addParam(RpcParam rpcParam); RpcRequest addParam(String literal); RpcRequest addParam(Map m); RpcRequest addParam(List l); RpcRequest addParam(Object o); boolean isAbsolute(); @Override String toString(); @Override boolean equals(Object o); @Override int hashCode(); static final int MINIMUM_TIMEOUT; static final int DEFAULT_TIMEOUT; static final String DEFAULT_VERSION; }