Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.dottydingo.service.endpoint.context;
 
 
 public class EndpointResponse
 {
    private int responseCode;
    private OutputStream outputStream;
    private String contentType;
    private String contentEncoding;
    public int getResponseCode()
    {
        return ;
    }
    public void setResponseCode(int responseCode)
    {
        this. = responseCode;
        if( != null)
            .setStatus(responseCode);
    }
    public OutputStream getOutputStream()
    {
        return ;
    }
    public void setOutputStream(OutputStream outputStream)
    {
        this. = outputStream;
    }
    {
        return ;
    }
    public void setHttpServletResponse(HttpServletResponse httpServletResponse)
    {
        this. = httpServletResponse;
    }
    public String getContentType()
    {
        return ;
    }
    public void setContentType(String contentType)
    {
        this. = contentType;
        if( != null)
            .setContentType(contentType);
    }
    public String getContentEncoding()
    {
        return ;
    }
    public void setContentEncoding(String contentEncoding)
    {
        this. = contentEncoding;
        if( != null)
            .setCharacterEncoding(contentEncoding);
    }
    public void addHeader(String name,String value)
    {
        if( != null)
            .addHeader(name,value);
    }
    public void setHeader(String name,String value)
    {
        if( != null)
            .setHeader(name,value);
    }
New to GrepCode? Check out our FAQ X