@Override public void respond(IRequestCycle requestCycle) { bufferedWebResponse.writeTo((WebResponse)requestCycle.getResponse()); } }
@Override public void respond(IRequestCycle requestCycle) { if (update != null) { update.writeTo(requestCycle.getResponse(), "UTF-8"); } }
@Override public void respond(IRequestCycle requestCycle) { if (update != null) { update.writeTo(requestCycle.getResponse(), "UTF-8"); } }
/** * Respond by sending the set errorCode and optionally the message to the browser. * * @see org.apache.wicket.request.IRequestHandler#respond(org.apache.wicket.request.IRequestCycle) */ @Override public void respond(final IRequestCycle requestCycle) { WebResponse webResponse = (WebResponse)requestCycle.getResponse(); webResponse.sendError(errorCode, message); }
/** * Respond by sending the set errorCode and optionally the message to the browser. * * @see org.apache.wicket.request.IRequestHandler#respond(org.apache.wicket.request.IRequestCycle) */ @Override public void respond(final IRequestCycle requestCycle) { WebResponse webResponse = (WebResponse)requestCycle.getResponse(); webResponse.sendError(errorCode, message); }
@Override public void respond(IRequestCycle requestCycle) { bufferedWebResponse.writeTo((WebResponse)requestCycle.getResponse()); } }
@Override public void respond(IRequestCycle requestCycle) { // preventing the response to component from being cached if (requestCycle.getResponse() instanceof WebResponse) { WebResponse response = (WebResponse)requestCycle.getResponse(); response.disableCaching(); } component.beforeRender(); component.renderPart(); }
@Override public void respond(IRequestCycle requestCycle) { // preventing the response to component from being cached if (requestCycle.getResponse() instanceof WebResponse) { WebResponse response = (WebResponse)requestCycle.getResponse(); response.disableCaching(); } component.beforeRender(); component.renderPart(); }
@Override public void respond(final IRequestCycle requestCycle) { requestCycle.getResponse().reset(); delegate.respond(requestCycle); }
@Override public void respond(final IRequestCycle requestCycle) { requestCycle.getResponse().reset(); delegate.respond(requestCycle); }
public void respond(IRequestCycle requestCycle) { String location = ((RequestCycle) requestCycle).urlFor(this).toString(); if (location.startsWith("/")) { // context-absolute url location = requestCycle.getUrlRenderer().renderContextRelativeUrl(location); } WebResponse response = (WebResponse) requestCycle.getResponse(); response.sendRedirect(location); }
/** * @see org.apache.wicket.request.IRequestHandler#respond(org.apache.wicket.request.IRequestCycle) */ @Override public void respond(final IRequestCycle requestCycle) { IResource.Attributes a = new IResource.Attributes(requestCycle.getRequest(), requestCycle.getResponse(), parameters); resource.respond(a); } }
/** * @see org.apache.wicket.request.IRequestHandler#respond(org.apache.wicket.request.IRequestCycle) */ @Override public void respond(final IRequestCycle requestCycle) { IResource.Attributes a = new IResource.Attributes(requestCycle.getRequest(), requestCycle.getResponse(), parameters); resource.respond(a); } }
@Override public void respond(IRequestCycle requestCycle) { XliffDownloadResource downloadResource = new XliffDownloadResource(resultAsMap, projectVersion, filter); downloadResource.respond(new IResource.Attributes(requestCycle.getRequest(), requestCycle.getResponse())); }
/** * Responds by sending the contents of the resource stream. * * @see org.apache.wicket.request.IRequestHandler#respond(org.apache.wicket.request.IRequestCycle) */ @Override public void respond(IRequestCycle requestCycle) { Attributes attributes = new Attributes(requestCycle.getRequest(), requestCycle.getResponse()); ResourceStreamResource resource = new ResourceStreamResource(resourceStream); configure(resource); resource.respond(attributes); }
/** * Responds by sending the contents of the resource stream. * * @see org.apache.wicket.request.IRequestHandler#respond(org.apache.wicket.request.IRequestCycle) */ @Override public void respond(IRequestCycle requestCycle) { Attributes attributes = new Attributes(requestCycle.getRequest(), requestCycle.getResponse()); ResourceStreamResource resource = new ResourceStreamResource(resourceStream); configure(resource); resource.respond(attributes); }
@Override public void respond(IRequestCycle requestCycle) { WebResponse r = (WebResponse) requestCycle.getResponse(); // Determine encoding final String encoding = Application.get().getRequestCycleSettings().getResponseRequestEncoding(); r.setContentType("application/json;charset=" + encoding); // Make sure it is not cached r.setHeader("Expires", "Mon, 26 Jul 1997 05:00:00 GMT"); r.setHeader("Cache-Control", "no-cache, must-revalidate"); r.setHeader("Pragma", "no-cache"); r.write(responseJson.toString()); }
public void respond(IRequestCycle requestCycle) { WebResponse webResponse = (WebResponse) requestCycle.getResponse(); // Determine encoding final String encoding = Application.get().getRequestCycleSettings() .getResponseRequestEncoding(); webResponse.setContentType("application/json;charset=" + encoding); // Make sure it is not cached webResponse.setHeader("Expires", "Mon, 26 Jul 1997 05:00:00 GMT"); webResponse.setHeader("Cache-Control", "no-cache, must-revalidate"); webResponse.setHeader("Pragma", "no-cache"); webResponse.write(response.toString()); }
/** {@inheritDoc} */ @Override public void respond(IRequestCycle requestCycle) { WebResponse response = (WebResponse)requestCycle.getResponse(); final String encoding = Application.get() .getRequestCycleSettings() .getResponseRequestEncoding(); // Set content type based on markup type for page response.setContentType("text/xml; charset=" + encoding); // Make sure it is not cached by a client response.disableCaching(); response.write("<?xml version=\"1.0\" encoding=\""); response.write(encoding); response.write("\"?><ajax-response></ajax-response>"); }
/** {@inheritDoc} */ @Override public void respond(IRequestCycle requestCycle) { WebResponse response = (WebResponse)requestCycle.getResponse(); final String encoding = Application.get() .getRequestCycleSettings() .getResponseRequestEncoding(); // Set content type based on markup type for page response.setContentType("text/xml; charset=" + encoding); // Make sure it is not cached by a client response.disableCaching(); response.write("<?xml version=\"1.0\" encoding=\""); response.write(encoding); response.write("\"?><ajax-response></ajax-response>"); }