java.lang.Object
net.odoframework.service.web.SimpleWebResponse
- All Implemented Interfaces:
FailureAware,Response,WebResponse
public class SimpleWebResponse extends Object implements WebResponse
-
Constructor Summary
Constructors Constructor Description SimpleWebResponse() -
Method Summary
Modifier and Type Method Description SimpleWebResponseaddHeader(String name, String value)SimpleWebResponsebody(String body)StringgetBody()Map<String,String>getHeaders()StringgetMessage()intgetStatusCode()booleanisBase64Encoded()SimpleWebResponsemessage(String message)SimpleWebResponsestatus(int statusCode)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.odoframework.service.web.WebResponse
addHeader, addHeader, contentType, created, getContentType, isFailed, notFound, ok, serverError, userError
-
Constructor Details
-
SimpleWebResponse
public SimpleWebResponse()
-
-
Method Details
-
status
- Specified by:
statusin interfaceWebResponse
-
addHeader
- Specified by:
addHeaderin interfaceWebResponse
-
body
- Specified by:
bodyin interfaceWebResponse
-
getStatusCode
public int getStatusCode()- Specified by:
getStatusCodein interfaceWebResponse
-
getMessage
- Specified by:
getMessagein interfaceWebResponse
-
getHeaders
- Specified by:
getHeadersin interfaceWebResponse
-
message
- Specified by:
messagein interfaceWebResponse
-
getBody
- Specified by:
getBodyin interfaceWebResponse
-
isBase64Encoded
public boolean isBase64Encoded()
-