/** * decodes the transport data to Packet * * @param connection that carries the web service request * @param codec for encoding/decoding {@link Message} * @return decoded {@link Packet} * @throws IOException if an i/o error happens while encoding/decoding */ protected Packet decodePacket(T connection, @NotNull Codec codec) throws IOException { Packet packet = new Packet(); packet.acceptableMimeTypes = getAcceptableMimeTypes(connection); packet.addSatellite(getPropertySet(connection)); packet.transportBackChannel = getTransportBackChannel(connection); return packet; }
public void handleAsync(WSHTTPConnection con) throws IOException { super.handle(con); }
public void onCompletion(@NotNull Packet response) { try { encodePacket(connection, response, codec); } catch(IOException ioe) { ioe.printStackTrace(); } codecPool.recycle(codec); } });
/** * Reads and decodes infoset from the connection and invokes the endpoints. The * response is encoded and written to the connection. The response could be * written using a different thread. * * @param connection that carries the web service request * @throws IOException if an i/o error happens while encoding/decoding */ protected void handle(final T connection) throws IOException { final Codec codec = codecPool.take(); Packet request = decodePacket(connection, codec); if (!request.getMessage().isFault()) { endpoint.schedule(request, new WSEndpoint.CompletionCallback() { public void onCompletion(@NotNull Packet response) { try { encodePacket(connection, response, codec); } catch(IOException ioe) { ioe.printStackTrace(); } codecPool.recycle(codec); } }); } }
public void onCompletion(@NotNull Packet response) { try { encodePacket(connection, response, codec); } catch(IOException ioe) { ioe.printStackTrace(); } codecPool.recycle(codec); } });
/** * Reads and decodes infoset from the connection and invokes the endpoints. The * response is encoded and written to the connection. The response could be * written using a different thread. * * @param connection that carries the web service request * @throws IOException if an i/o error happens while encoding/decoding */ protected void handle(final T connection) throws IOException { final Codec codec = codecPool.take(); Packet request = decodePacket(connection, codec); if (!request.getMessage().isFault()) { endpoint.schedule(request, new WSEndpoint.CompletionCallback() { public void onCompletion(@NotNull Packet response) { try { encodePacket(connection, response, codec); } catch(IOException ioe) { ioe.printStackTrace(); } codecPool.recycle(codec); } }); } }
/** * decodes the transport data to Packet * * @param connection that carries the web service request * @param codec for encoding/decoding {@link Message} * @return decoded {@link Packet} * @throws IOException if an i/o error happens while encoding/decoding */ protected Packet decodePacket(T connection, @NotNull Codec codec) throws IOException { Packet packet = new Packet(); packet.acceptableMimeTypes = getAcceptableMimeTypes(connection); packet.addSatellite(getPropertySet(connection)); packet.transportBackChannel = getTransportBackChannel(connection); return packet; }
public void onCompletion(@NotNull Packet response) { try { encodePacket(connection, response, codec); } catch(IOException ioe) { ioe.printStackTrace(); } codecPool.recycle(codec); } });
public void handleAsync(WSHTTPConnection con) throws IOException { super.handle(con); }
/** * Reads and decodes infoset from the connection and invokes the endpoints. The * response is encoded and written to the connection. The response could be * written using a different thread. * * @param connection that carries the web service request * @throws IOException if an i/o error happens while encoding/decoding */ protected void handle(final T connection) throws IOException { final Codec codec = codecPool.take(); Packet request = decodePacket(connection, codec); if (!request.getMessage().isFault()) { endpoint.schedule(request, new WSEndpoint.CompletionCallback() { public void onCompletion(@NotNull Packet response) { try { encodePacket(connection, response, codec); } catch(IOException ioe) { ioe.printStackTrace(); } codecPool.recycle(codec); } }); } }
/** * decodes the transport data to Packet * * @param connection that carries the web service request * @param codec for encoding/decoding {@link Message} * @return decoded {@link Packet} * @throws IOException if an i/o error happens while encoding/decoding */ protected Packet decodePacket(T connection, @NotNull Codec codec) throws IOException { Packet packet = new Packet(); packet.acceptableMimeTypes = getAcceptableMimeTypes(connection); packet.addSatellite(getPropertySet(connection)); packet.transportBackChannel = getTransportBackChannel(connection); return packet; }
public void handleAsync(WSHTTPConnection con) throws IOException { super.handle(con); }