public static final class ResponseMessage.Builder extends Object
Modifier and Type | Method and Description |
---|---|
ResponseMessage.Builder |
code(ResponseStatusCode code) |
ResponseMessage |
create() |
ResponseMessage.Builder |
responseMetaData(Map<String,Object> metaData) |
ResponseMessage.Builder |
result(Object result) |
ResponseMessage.Builder |
statusAttribute(String key,
Object value) |
ResponseMessage.Builder |
statusAttributeException(Throwable ex) |
ResponseMessage.Builder |
statusAttributes(Map<String,Object> attributes) |
ResponseMessage.Builder |
statusMessage(String message) |
public ResponseMessage.Builder code(ResponseStatusCode code)
public ResponseMessage.Builder statusMessage(String message)
public ResponseMessage.Builder statusAttributes(Map<String,Object> attributes)
public ResponseMessage.Builder statusAttributeException(Throwable ex)
public ResponseMessage.Builder statusAttribute(String key, Object value)
public ResponseMessage.Builder result(Object result)
public ResponseMessage.Builder responseMetaData(Map<String,Object> metaData)
public ResponseMessage create()
Copyright © 2013–2020 Apache Software Foundation. All rights reserved.