/** * For use cases that start with an existing Packet. */ public Packet relateClientResponse(final Packet response) { response.relatePackets(this, true); finishCreateRelateClientResponse(response); return response; }
/** * For use cases that start with an existing Packet. */ public Packet relateClientResponse(final Packet response) { response.relatePackets(this, true); finishCreateRelateClientResponse(response); return response; }
/** * For use cases that start with an existing Packet. */ public Packet relateClientResponse(final Packet response) { response.relatePackets(this, true); finishCreateRelateClientResponse(response); return response; }
/** * Creates a response {@link Packet} from a request packet ({@code this}). * * <p> * When a {@link Packet} for a reply is created, some properties need to be * copied over from a request to a response, and this method handles it correctly. * * @param msg * The {@link Message} that represents a reply. Can be null. */ public Packet createClientResponse(Message msg) { Packet response = new Packet(this); response.setMessage(msg); finishCreateRelateClientResponse(response); return response; }
/** * Creates a response {@link Packet} from a request packet ({@code this}). * * <p> * When a {@link Packet} for a reply is created, some properties need to be * copied over from a request to a response, and this method handles it correctly. * * @param msg * The {@link Message} that represents a reply. Can be null. */ public Packet createClientResponse(Message msg) { Packet response = new Packet(this); response.setMessage(msg); finishCreateRelateClientResponse(response); return response; }
/** * Creates a response {@link Packet} from a request packet ({@code this}). * * <p> * When a {@link Packet} for a reply is created, some properties need to be * copied over from a request to a response, and this method handles it correctly. * * @param msg * The {@link Message} that represents a reply. Can be null. */ public Packet createClientResponse(Message msg) { Packet response = new Packet(this); response.setMessage(msg); finishCreateRelateClientResponse(response); return response; }