|
@@ -24,7 +24,7 @@ public class UndertowContainerResponseWriter
|
|
public OutputStream writeResponseStatusAndHeaders(long contentLength,
|
|
public OutputStream writeResponseStatusAndHeaders(long contentLength,
|
|
ContainerResponse responseContext) throws ContainerException
|
|
ContainerResponse responseContext) throws ContainerException
|
|
{
|
|
{
|
|
- httpServerExchange.setResponseCode(responseContext.getStatus());
|
|
|
|
|
|
+ httpServerExchange.setStatusCode(responseContext.getStatus());
|
|
|
|
|
|
for (Map.Entry<String, List<String>> mapEntry : responseContext.getStringHeaders().entrySet())
|
|
for (Map.Entry<String, List<String>> mapEntry : responseContext.getStringHeaders().entrySet())
|
|
{
|
|
{
|
|
@@ -40,6 +40,7 @@ public class UndertowContainerResponseWriter
|
|
public boolean suspend(long timeOut, TimeUnit timeUnit,
|
|
public boolean suspend(long timeOut, TimeUnit timeUnit,
|
|
TimeoutHandler timeoutHandler)
|
|
TimeoutHandler timeoutHandler)
|
|
{
|
|
{
|
|
|
|
+ // TODO implement
|
|
return false;
|
|
return false;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -47,7 +48,7 @@ public class UndertowContainerResponseWriter
|
|
public void setSuspendTimeout(long timeOut, TimeUnit timeUnit)
|
|
public void setSuspendTimeout(long timeOut, TimeUnit timeUnit)
|
|
throws IllegalStateException
|
|
throws IllegalStateException
|
|
{
|
|
{
|
|
- // Util.l("suspendtimeout");
|
|
|
|
|
|
+ //TODO implement
|
|
}
|
|
}
|
|
|
|
|
|
@Override
|
|
@Override
|
|
@@ -59,7 +60,8 @@ public class UndertowContainerResponseWriter
|
|
@Override
|
|
@Override
|
|
public void failure(Throwable error)
|
|
public void failure(Throwable error)
|
|
{
|
|
{
|
|
- httpServerExchange.setResponseCode(500);
|
|
|
|
|
|
+ // TODO don't print out
|
|
|
|
+ httpServerExchange.setStatusCode(500);
|
|
httpServerExchange.endExchange();
|
|
httpServerExchange.endExchange();
|
|
error.printStackTrace();
|
|
error.printStackTrace();
|
|
}
|
|
}
|
|
@@ -67,6 +69,7 @@ public class UndertowContainerResponseWriter
|
|
@Override
|
|
@Override
|
|
public boolean enableResponseBuffering()
|
|
public boolean enableResponseBuffering()
|
|
{
|
|
{
|
|
|
|
+ // TODO not sure
|
|
return false;
|
|
return false;
|
|
}
|
|
}
|
|
}
|
|
}
|