Package org.serviceconnector.web
Interface IWebResponse
- All Known Implementing Classes:
NettyWebResponse
public interface IWebResponse
The Interface IWebResponse abstracts a web response.
-
Method Summary
Modifier and TypeMethodDescriptionvoidAdds the header.byte[]getBytes()Gets the bytes.Gets the output stream.booleanChecks if is redirect.voidRedirect.voidsetContentType(String string) Sets the content type.
-
Method Details
-
addHeader
Adds the header.- Parameters:
name- the namevalue- the value
-
getOutputStream
OutputStream getOutputStream()Gets the output stream.- Returns:
- the output stream
-
getBytes
byte[] getBytes()Gets the bytes.- Returns:
- the bytes
-
setContentType
Sets the content type.- Parameters:
string- the new content type
-
redirect
Redirect.- Parameters:
path- the path
-
isRedirect
boolean isRedirect()Checks if is redirect.- Returns:
- true, if is redirect
-