- Add the Codota plugin to your IDE and get smart completions
private void myMethod () {StringBuilder s =
new StringBuilder()
new StringBuilder(32)
String str;new StringBuilder(str)
- Smart code suggestions by Codota
}
@Override public void filter(ContainerRequestContext requestContext) throws IOException { PostMatchContainerRequestContext ctx = (PostMatchContainerRequestContext)requestContext; ServerResponse response = interceptor.preProcess(ctx.getHttpRequest(), ctx.getResourceMethod()); if (response != null) { requestContext.abortWith(response); } } }
@Override public void filter(ContainerRequestContext requestContext) throws IOException { if (requestContext instanceof PostMatchContainerRequestContext && ((PostMatchContainerRequestContext) requestContext).getResourceMethod().isSse()) { SseEventOutputImpl sink = new SseEventOutputImpl(new SseEventProvider()); ResteasyProviderFactory.getContextDataMap().put(SseEventSink.class, sink); ResteasyProviderFactory.getContextData(PostResourceMethodInvokers.class).addInvokers(new PostResourceMethodInvoker() { @Override public void invoke() { sink.flushResponseToClient(); } }); } }