public Iterator fragment(int size) { byte[] stub = getStub(); if (stub == null) { return Arrays.asList(new FaultCoPdu[] { this }).iterator(); } int stubSize = size - 24; if (stub.length <= stubSize) { return Arrays.asList(new FaultCoPdu[] { this }).iterator(); } return new FragmentIterator(stubSize); }
public Iterator fragment(int size) { byte[] stub = getStub(); if (stub == null) { return Arrays.asList(new FaultCoPdu[] { this }).iterator(); } int stubSize = size - 24; if (stub.length <= stubSize) { return Arrays.asList(new FaultCoPdu[] { this }).iterator(); } return new FragmentIterator(stubSize); }
public Iterator fragment ( int size ) { byte[] stub = getStub (); if ( stub == null ) { return Arrays.asList ( new FaultCoPdu[] { this } ).iterator (); } int stubSize = size - 24; if ( stub.length <= stubSize ) { return Arrays.asList ( new FaultCoPdu[] { this } ).iterator (); } return new FragmentIterator ( stubSize ); }
protected void writeStub(NetworkDataRepresentation ndr) { NdrBuffer buf = ndr.getBuffer(); buf.align(8, (byte) 0); byte[] stub = getStub(); if (stub != null) ndr.writeOctetArray(stub, 0, stub.length); }
protected void writeStub ( NetworkDataRepresentation ndr ) { NdrBuffer buf = ndr.getBuffer (); buf.align ( 8, (byte)0 ); byte[] stub = getStub (); if ( stub != null ) ndr.writeOctetArray ( stub, 0, stub.length ); }
protected void writeStub(NetworkDataRepresentation ndr) { NdrBuffer buf = ndr.getBuffer(); buf.align(8, (byte) 0); byte[] stub = getStub(); if (stub != null) ndr.writeOctetArray(stub, 0, stub.length); }
byte[] stub = pdu.getStub(); if (stub == null) stub = new byte[0]; while (fragments.hasNext()) { FaultCoPdu fragment = (FaultCoPdu) fragments.next(); byte[] fragmentStub = fragment.getStub(); if (fragmentStub != null && fragmentStub.length > 0) { byte[] tmp = new byte[stub.length + fragmentStub.length];
byte[] stub = pdu.getStub(); if (stub == null) stub = new byte[0]; while (fragments.hasNext()) { FaultCoPdu fragment = (FaultCoPdu) fragments.next(); byte[] fragmentStub = fragment.getStub(); if (fragmentStub != null && fragmentStub.length > 0) { byte[] tmp = new byte[stub.length + fragmentStub.length];
FaultCoPdu fault = (FaultCoPdu) reply; throw new FaultException("Received fault.", fault.getStatus(), fault.getStub()); } else if (reply instanceof ShutdownPdu) { throw new RpcException("Received shutdown request from server.");
FaultCoPdu fault = (FaultCoPdu) reply; throw new FaultException("Received fault.", fault.getStatus(), fault.getStub()); } else if (reply instanceof ShutdownPdu) { throw new RpcException("Received shutdown request from server.");
throw new FaultException ( "Received fault.", fault.getStatus (), fault.getStub () );
throw new FaultException ( "Received fault.", fault.getStatus (), fault.getStub () );
fault.getStub()); } else if (request instanceof ShutdownPdu) { throw new RpcException("Received shutdown request from server.");
fault.getStub()); } else if (request instanceof ShutdownPdu) { throw new RpcException("Received shutdown request from server.");