Package org.analogweb.core
Class AbstractResponseContext
- java.lang.Object
-
- org.analogweb.core.AbstractResponseContext
-
- All Implemented Interfaces:
ResponseContext
public abstract class AbstractResponseContext extends Object implements ResponseContext
- Author:
- snowgoose
-
-
Constructor Summary
Constructors Constructor Description AbstractResponseContext()
AbstractResponseContext(Headers headers)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
completed()
Test response has completed.void
ensure()
Ensure response has completed.Headers
getResponseHeaders()
Obtain response headers.protected int
getStatus()
void
setStatus(int status)
Set HTTP status code.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.analogweb.ResponseContext
commit
-
-
-
-
Constructor Detail
-
AbstractResponseContext
public AbstractResponseContext()
-
AbstractResponseContext
public AbstractResponseContext(Headers headers)
-
-
Method Detail
-
getResponseHeaders
public Headers getResponseHeaders()
Description copied from interface:ResponseContext
Obtain response headers.- Specified by:
getResponseHeaders
in interfaceResponseContext
- Returns:
- response header
-
getStatus
protected int getStatus()
-
setStatus
public void setStatus(int status)
Description copied from interface:ResponseContext
Set HTTP status code.- Specified by:
setStatus
in interfaceResponseContext
- Parameters:
status
- HTTP status code
-
completed
public boolean completed()
Description copied from interface:ResponseContext
Test response has completed.- Specified by:
completed
in interfaceResponseContext
- Returns:
- true when response has completed.
-
ensure
public void ensure()
Description copied from interface:ResponseContext
Ensure response has completed.- Specified by:
ensure
in interfaceResponseContext
-
-