Package com.aspectran.undertow.adapter
Class TowResponseAdapter
java.lang.Object
com.aspectran.core.adapter.AbstractResponseAdapter
com.aspectran.undertow.adapter.TowResponseAdapter
- All Implemented Interfaces:
com.aspectran.core.adapter.ResponseAdapter
public class TowResponseAdapter
extends com.aspectran.core.adapter.AbstractResponseAdapter
The Class TowResponseAdapter.
Created: 2019-07-27
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionTowResponseAdapter(io.undertow.server.HttpServerExchange exchange, TowActivity activity) -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleancontainsHeader(String name) voidflush()getHeaders(String name) intredirect(com.aspectran.core.context.rule.RedirectRule redirectRule) voidvoidsetContentType(String contentType) voidsetEncoding(String encoding) voidvoidsetStatus(int status) Methods inherited from class com.aspectran.core.adapter.AbstractResponseAdapter
getAdaptee
-
Constructor Details
-
TowResponseAdapter
-
-
Method Details
-
getHeader
-
getHeaders
-
getHeaderNames
-
containsHeader
-
setHeader
-
addHeader
-
getEncoding
-
setEncoding
- Throws:
UnsupportedEncodingException
-
getContentType
-
setContentType
-
getOutputStream
- Throws:
IOException
-
getWriter
- Throws:
IOException
-
flush
- Throws:
IOException
-
redirect
- Throws:
IOException
-
redirect
public String redirect(com.aspectran.core.context.rule.RedirectRule redirectRule) throws IOException - Throws:
IOException
-
getStatus
public int getStatus() -
setStatus
public void setStatus(int status)
-