@Test public void testWriteRequestWithReferenceParameter() throws RpcException { List<RpcParam> params = new ArrayList<RpcParam>(); params.add(new RpcParam("baz", RpcParam.Type.REFERENCE)); RpcRequest r = new RpcRequest("FOO BAR", params); w.write(r); assertEquals("[XWB]11302\u00010\u0007FOO BAR51003bazf\u0004", s.toString()); }
public void write(RpcRequest request) throws RpcException { try { writer.write(buildPar(request)); } catch (IOException e) { throw new RpcException("unable to write request message", e); } }
NewRpcMessageWriter implements RpcMessageWriter { public void write(RpcRequest request) throws RpcException { try { writer.write(buildPar(request)); } catch (IOException e) { throw new RpcException("unable to write request message", e); } } }
NewRpcMessageWriter implements RpcMessageWriter { public void write(RpcRequest request) throws RpcException { try { writer.write(buildPar(request)); } catch (IOException e) { throw new RpcException("unable to write request message", e); } } NewRpcMessageWriter(Writer w); }
NewRpcMessageWriter implements RpcMessageWriter { public void write(RpcRequest request) throws RpcException { try { writer.write(buildPar(request)); } catch (IOException e) { throw new RpcException("unable to write request message", e); } } NewRpcMessageWriter(Writer w); void writeStartConnection(String hostname, String address, int localPort); void writeStopConnection(); void write(RpcRequest request); void flush(); static String SPack(String str); static String LPack(String str, int nDigits); }
NewRpcMessageWriter implements RpcMessageWriter { public void write(RpcRequest request) throws RpcException { try { writer.write(buildPar(request)); } catch (IOException e) { throw new RpcException("unable to write request message", e); } } NewRpcMessageWriter(Writer w); void writeStartConnection(String hostname, String address, int localPort); void writeStopConnection(); void write(RpcRequest request); void flush(); static String SPack(String str); static String LPack(String str, int nDigits); static final String PREFIX; }