@Override public void writeAttribute(HttpServerExchange exchange, String newValue) throws ReadOnlyAttributeException { attribute.writeAttribute(exchange, newValue); } }
@Override public void beforeCommit(HttpServerExchange exchange) { try { attribute.writeAttribute(exchange, value.readAttribute(exchange)); } catch (ReadOnlyAttributeException e) { throw new RuntimeException(e); } } });
@Override public void handleRequest(HttpServerExchange exchange) throws Exception { if(preCommit) { exchange.addResponseCommitListener(new ResponseCommitListener() { @Override public void beforeCommit(HttpServerExchange exchange) { try { attribute.writeAttribute(exchange, value.readAttribute(exchange)); } catch (ReadOnlyAttributeException e) { throw new RuntimeException(e); } } }); } else { attribute.writeAttribute(exchange, value.readAttribute(exchange)); } next.handleRequest(exchange); }
@Override public void writeAttribute(HttpServerExchange exchange, String newValue) throws ReadOnlyAttributeException { attribute.writeAttribute(exchange, newValue); } }
@Override public void writeAttribute(HttpServerExchange exchange, String newValue) throws ReadOnlyAttributeException { attribute.writeAttribute(exchange, newValue); } }
@Override public void writeAttribute(final HttpServerExchange exchange, final String newValue) throws ReadOnlyAttributeException { RequestURLAttribute.INSTANCE.writeAttribute(exchange, newValue); }
@Override public void writeAttribute(final HttpServerExchange exchange, final String newValue) throws ReadOnlyAttributeException { RelativePathAttribute.INSTANCE.writeAttribute(exchange, newValue); }
@Override public void beforeCommit(HttpServerExchange exchange) { try { attribute.writeAttribute(exchange, value.readAttribute(exchange)); } catch (ReadOnlyAttributeException e) { throw new RuntimeException(e); } } });
@Override public void beforeCommit(HttpServerExchange exchange) { try { attribute.writeAttribute(exchange, value.readAttribute(exchange)); } catch (ReadOnlyAttributeException e) { throw new RuntimeException(e); } } });
@Override public void handleRequest(HttpServerExchange exchange) throws Exception { if(preCommit) { exchange.addResponseCommitListener(new ResponseCommitListener() { @Override public void beforeCommit(HttpServerExchange exchange) { try { attribute.writeAttribute(exchange, value.readAttribute(exchange)); } catch (ReadOnlyAttributeException e) { throw new RuntimeException(e); } } }); } else { attribute.writeAttribute(exchange, value.readAttribute(exchange)); } next.handleRequest(exchange); }
@Override public void handleRequest(HttpServerExchange exchange) throws Exception { if(preCommit) { exchange.addResponseCommitListener(new ResponseCommitListener() { @Override public void beforeCommit(HttpServerExchange exchange) { try { attribute.writeAttribute(exchange, value.readAttribute(exchange)); } catch (ReadOnlyAttributeException e) { throw new RuntimeException(e); } } }); } else { attribute.writeAttribute(exchange, value.readAttribute(exchange)); } next.handleRequest(exchange); }