1 19 20 package com.sslexplorer.boot; 21 22 import java.io.IOException ; 23 import java.io.OutputStream ; 24 25 import javax.servlet.http.Cookie ; 26 27 33 public interface RequestHandlerResponse { 34 35 47 public void setField(String header, String value); 48 49 61 public void addField(String header, String value); 62 63 71 public void removeField(String header); 72 73 81 public void sendError(int status, String message) throws IOException ; 82 83 89 public void setStatus(int status); 90 91 96 public void setContentLength(int length); 97 98 103 public void setReason(String reason); 104 105 111 public OutputStream getOutputStream() throws IOException ; 112 113 119 public void sendRedirect(String url) throws IOException ; 120 121 122 126 public void addCookie(Cookie cookie); 127 128 129 130 public void setCharacterEncoding(String charset); 131 132 } 133 | Popular Tags |