io.undertow.io.Receiver Java Examples
The following examples show how to use
io.undertow.io.Receiver.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ZipkinHttpCollector.java From pivotal-bank-demo with Apache License 2.0 | 6 votes |
@Autowired ZipkinHttpCollector( StorageComponent storage, CollectorSampler sampler, CollectorMetrics metrics) { this.metrics = metrics.forTransport("http"); this.collector = Collector.newBuilder(getClass()) .storage(storage) .sampler(sampler) .metrics(this.metrics) .build(); this.JSON_V2 = new HttpCollector(SpanBytesDecoder.JSON_V2); this.PROTO3 = new HttpCollector(SpanBytesDecoder.PROTO3); this.JSON_V1 = new HttpCollector(SpanBytesDecoder.JSON_V1); this.THRIFT = new HttpCollector(SpanBytesDecoder.THRIFT); this.errorCallback = new Receiver.ErrorCallback() { @Override public void error(HttpServerExchange exchange, IOException e) { ZipkinHttpCollector.this.metrics.incrementMessagesDropped(); ZipkinHttpCollector.error(exchange, e); } }; }
Example #2
Source File: HttpServerExchange.java From lams with GNU General Public License v2.0 | 5 votes |
public Receiver getRequestReceiver() { if(blockingHttpExchange != null) { return blockingHttpExchange.getReceiver(); } if(receiver != null) { return receiver; } return receiver = new AsyncReceiverImpl(this); }
Example #3
Source File: UndertowRequest.java From actframework with Apache License 2.0 | 5 votes |
public void receiveFullBytesAndProceed(final ActionContext context, final RequestHandler handler) { ActionContext.clearLocal(); hse.getRequestReceiver().receiveFullBytes(new Receiver.FullBytesCallback() { @Override public void handle(HttpServerExchange exchange, byte[] message) { body = message; context.saveLocal(); handler.handle(context); } }); }
Example #4
Source File: ServletBlockingHttpExchange.java From lams with GNU General Public License v2.0 | 4 votes |
@Override public Receiver getReceiver() { return new BlockingReceiverImpl(exchange, getInputStream()); }
Example #5
Source File: HttpServerExchange.java From lams with GNU General Public License v2.0 | 4 votes |
@Override public Receiver getReceiver() { return new BlockingReceiverImpl(exchange, getInputStream()); }
Example #6
Source File: BlockingHttpExchange.java From lams with GNU General Public License v2.0 | 2 votes |
/** * returns a receiver based on the provided input stream. * @return The receiver */ Receiver getReceiver();
Example #7
Source File: ServerRequest.java From proteus with Apache License 2.0 | votes |
public Receiver getRequestReceiver() {return exchange.getRequestReceiver();}