Package jade.imtp.leap.http

Examples of jade.imtp.leap.http.HTTPResponse


  }

  private static ByteBuffer wrapInHttpResponse(ByteBuffer pkt) throws IOException {
    byte[] b = new byte[pkt.remaining()];
    pkt.get(b, 0, pkt.remaining());
    HTTPResponse response = wrapInHttp(b);
    ByteArrayOutputStream out = new ByteArrayOutputStream();
    response.writeTo(out);
    return ByteBuffer.wrap(out.toByteArray());
  }
View Full Code Here

TOP

Related Classes of jade.imtp.leap.http.HTTPResponse

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.