@@ -0,0 +1,1395 @@
+package com.waratek.spiracle.misc;%0A%0Aimport java.io.IOException;%0A%0Aimport javax.servlet.ServletException;%0Aimport javax.servlet.annotation.WebServlet;%0Aimport javax.servlet.http.HttpServlet;%0Aimport javax.servlet.http.HttpServletRequest;%0Aimport javax.servlet.http.HttpServletResponse;%0A%0A@WebServlet(%22/AddHeaders%22)%0Apublic class AddHeaders extends HttpServlet %7B%0A%0A    public AddHeaders() %7B%0A        super();%0A        // TODO Auto-generated constructor stub%0A    %7D%0A%0A    protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException %7B%0A        executeRequest(request, response);%0A    %7D%0A%0A    protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException %7B%0A        executeRequest(request, response);%0A    %7D%0A%0A    private void executeRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException %7B%0A%0A        String customHeaderValueParam = %22addCustom%22;%0A%0A        if(request.getParameter(customHeaderValueParam) != null) %7B%0A            String customHeaderValue = request.getParameter(customHeaderValueParam);%0A            response.addHeader(%22CustomTestHeader%22, customHeaderValue);%0A        %7D%0A%0A        response.addHeader(%22DefaultTestHeader1%22, %22foo%22);%0A        response.addHeader(%22DefaultTestHeader2%22, %22bar%22);%0A        response.addHeader(%22DefaultTestHeader3%22, %22baz%22);%0A    %7D%0A%7D%0A

Add AddHeaders sevlet to spiracle