Example usage for javax.servlet.http HttpServletResponse interface-usage

List of usage examples for javax.servlet.http HttpServletResponse interface-usage

Introduction

In this page you can find the example usage for javax.servlet.http HttpServletResponse interface-usage.

Usage

From source file org.nuxeo.ecm.platform.webdav.request.tests.FakeResponse.java

/**
 * Fake WebDAV Response for tests.
 *
 * @author tiry
 */
public class FakeResponse implements HttpServletResponse {

From source file com.hypersocket.netty.HttpResponseServletWrapper.java

public class HttpResponseServletWrapper implements HttpServletResponse {

    HttpResponse response;
    String charset;
    Locale locale;
    boolean committed = false;

From source file de.micromata.genome.tpsb.httpmockup.MockHttpServletResponse.java

/**
 * Mockup servlet response.
 * 
 * Adopted from stripes.
 * 
 * @author Roger Rene Kommer (r.kommer.extern@micromata.de)

From source file com.threewks.thundr.http.SyntheticHttpServletResponse.java

public class SyntheticHttpServletResponse implements HttpServletResponse {
    private String contentType = ContentType.TextHtml.value();
    private String characterEncoding = StringPool.UTF_8;
    private Map<String, String> headers = new LinkedHashMap<>();
    private ByteArrayOutputStream baos = new ByteArrayOutputStream();
    private ServletOutputStream os = new ServletOutputStream() {

From source file com.mb.framework.web.filter.BufferedResponseWrapper.java

/**
 * @author SPA
 * 
 */
public class BufferedResponseWrapper implements HttpServletResponse {

From source file com.threewks.thundr.request.servlet.SyntheticHttpServletResponse.java

public class SyntheticHttpServletResponse implements HttpServletResponse {
    private String contentType = ContentType.TextHtml.value();
    private String characterEncoding = StringPool.UTF_8;
    private int status = 200;
    private Map<String, String> headers = new LinkedHashMap<>();
    private ByteArrayOutputStream baos = new ByteArrayOutputStream();

From source file nl.strohalm.cyclos.http.ResettableHttpServletResponse.java

/**
 * An {@link HttpServletResponse} which wraps another response, keeping track of changes. Any changes can be applied or reset.
 * @author luis
 */
@SuppressWarnings("deprecation")
public class ResettableHttpServletResponse implements HttpServletResponse, Resettable {

From source file org.apache.hadoop.hdfs.server.namenode.MockFSInputStream.java

class MockHttpServletResponse implements HttpServletResponse {

    private int status = -1;

    public MockHttpServletResponse() {
    }

From source file org.browsermob.proxy.jetty.jetty.servlet.ServletHttpResponse.java

/** Servlet Response Wrapper.
 * This class wraps a Jetty HTTP response as a 2.2 Servlet
 * response.
 *
 * Note that this wrapper is not synchronized and if a response is to
 * be operated on by multiple threads, then higher level

From source file net.lightbody.bmp.proxy.jetty.jetty.servlet.ServletHttpResponse.java

/** Servlet Response Wrapper.
 * This class wraps a Jetty HTTP response as a 2.2 Servlet
 * response.
 *
 * Note that this wrapper is not synchronized and if a response is to
 * be operated on by multiple threads, then higher level