Package uz.maniac4j.payload
Class Payload
java.lang.Object
uz.maniac4j.payload.Payload
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ApiResponse
accepted()
static ApiResponse
static ApiResponse
static ApiResponse
static ApiResponse
static ApiResponse
static ApiResponse
api
(String message, boolean success, HttpStatus status) static ApiResponse
api
(String message, boolean success, HttpStatus status, Object object) static ApiResponse
api
(String message, HttpStatus status) static ApiResponse
api
(String message, HttpStatus status, Object object) static ApiResponse
api
(HttpStatus status) For responsesstatic ApiResponse
api
(HttpStatus status, Object object) static ApiResponse
api
(HttpStatus status, Object object, long totalElements, long totalPages, long page) static ApiResponse
api
(HttpStatus status, Object object, long totalElements, long totalPages, long page, boolean success) static ApiResponse
static ApiResponse
badGateway
(Object object) static ApiResponse
badGateway
(String message) static ApiResponse
badGateway
(String message, Object object) static ApiResponse
Errorsstatic ApiResponse
badRequest
(Object object) static ApiResponse
badRequest
(String message) static ApiResponse
badRequest
(String message, Object object) static ApiResponse
conflict()
static ApiResponse
static ApiResponse
static ApiResponse
static ApiResponse
Successstatic ApiResponse
static ApiResponse
static ApiResponse
static ApiResponse
created()
static ApiResponse
static ApiResponse
static ApiResponse
static ApiResponse
static ApiResponse
expectationFailed
(Object object) static ApiResponse
expectationFailed
(String message) static ApiResponse
expectationFailed
(String message, Object object) static ApiResponse
static ApiResponse
static ApiResponse
static ApiResponse
static ApiResponse
found()
static ApiResponse
static ApiResponse
static ApiResponse
static ApiResponse
static ApiResponse
gatewayTimeout
(Object object) static ApiResponse
gatewayTimeout
(String message) static ApiResponse
gatewayTimeout
(String message, Object object) static ApiResponse
gone()
static ApiResponse
static ApiResponse
static ApiResponse
static ApiResponse
static ApiResponse
httpVersionNotSupported
(Object object) static ApiResponse
httpVersionNotSupported
(String message) static ApiResponse
httpVersionNotSupported
(String message, Object object) static ApiResponse
static ApiResponse
static ApiResponse
static ApiResponse
static ApiResponse
static ApiResponse
internalServerError
(Object object) static ApiResponse
internalServerError
(String message) static ApiResponse
internalServerError
(String message, Object object) static ApiResponse
static ApiResponse
lengthRequired
(Object object) static ApiResponse
lengthRequired
(String message) static ApiResponse
lengthRequired
(String message, Object object) static ApiResponse
static ApiResponse
methodNotAllowed
(Object object) static ApiResponse
methodNotAllowed
(String message) static ApiResponse
methodNotAllowed
(String message, Object object) static ApiResponse
static ApiResponse
movedPermanently
(Object object) static ApiResponse
movedPermanently
(String message) static ApiResponse
movedPermanently
(String message, Object object) static ApiResponse
static ApiResponse
multipleChoices
(Object object) static ApiResponse
multipleChoices
(String message) static ApiResponse
multipleChoices
(String message, Object object) static ApiResponse
static ApiResponse
static ApiResponse
static ApiResponse
static ApiResponse
static ApiResponse
nonAuthoritativeInformation
(Object object) static ApiResponse
nonAuthoritativeInformation
(String message) static ApiResponse
nonAuthoritativeInformation
(String message, Object object) static ApiResponse
static ApiResponse
notAcceptable
(Object object) static ApiResponse
notAcceptable
(String message) static ApiResponse
notAcceptable
(String message, Object object) static ApiResponse
notFound()
static ApiResponse
static ApiResponse
static ApiResponse
static ApiResponse
static ApiResponse
notImplemented
(Object object) static ApiResponse
notImplemented
(String message) static ApiResponse
notImplemented
(String message, Object object) static ApiResponse
static ApiResponse
notModified
(Object object) static ApiResponse
notModified
(String message) static ApiResponse
notModified
(String message, Object object) static ApiResponse
ok()
static ApiResponse
static ApiResponse
static ApiResponse
static ApiResponse
static ApiResponse
static ApiResponse
static ApiResponse
partialContent
(Object object) static ApiResponse
partialContent
(String message) static ApiResponse
partialContent
(String message, Object object) static ApiResponse
static ApiResponse
paymentRequired
(Object object) static ApiResponse
paymentRequired
(String message) static ApiResponse
paymentRequired
(String message, Object object) static ApiResponse
static ApiResponse
preconditionFailed
(Object object) static ApiResponse
preconditionFailed
(String message) static ApiResponse
preconditionFailed
(String message, Object object) static ApiResponse
static ApiResponse
proxyAuthenticationRequired
(Object object) static ApiResponse
proxyAuthenticationRequired
(String message) static ApiResponse
proxyAuthenticationRequired
(String message, Object object) static ApiResponse
static ApiResponse
requestedURITooLong
(Object object) static ApiResponse
requestedURITooLong
(String message) static ApiResponse
requestedURITooLong
(String message, Object object) static ApiResponse
static ApiResponse
requestEntityTooLarge
(Object object) static ApiResponse
requestEntityTooLarge
(String message) static ApiResponse
requestEntityTooLarge
(String message, Object object) static ApiResponse
static ApiResponse
requestRangeNotSatisfiable
(Object object) static ApiResponse
requestRangeNotSatisfiable
(String message) static ApiResponse
requestRangeNotSatisfiable
(String message, Object object) static ApiResponse
static ApiResponse
requestTimeout
(Object object) static ApiResponse
requestTimeout
(String message) static ApiResponse
requestTimeout
(String message, Object object) static ApiResponse
static ApiResponse
resetContent
(Object object) static ApiResponse
resetContent
(String message) static ApiResponse
resetContent
(String message, Object object) static ApiResponse
seeOther()
static ApiResponse
static ApiResponse
static ApiResponse
static ApiResponse
static ApiResponse
serviceUnavailable
(Object object) static ApiResponse
serviceUnavailable
(String message) static ApiResponse
serviceUnavailable
(String message, Object object) static ApiResponse
static ApiResponse
switchingProtocols
(Object object) static ApiResponse
switchingProtocols
(String message) static ApiResponse
switchingProtocols
(String message, Object object) static ApiResponse
static ApiResponse
temporaryRedirect
(Object object) static ApiResponse
temporaryRedirect
(String message) static ApiResponse
temporaryRedirect
(String message, Object object) static ApiResponse
static ApiResponse
tooManyRequest
(Object object) static ApiResponse
tooManyRequest
(String message) static ApiResponse
tooManyRequest
(String message, Object object) static ApiResponse
static ApiResponse
unauthorized
(Object object) static ApiResponse
unauthorized
(String message) static ApiResponse
unauthorized
(String message, Object object) static ApiResponse
unknown()
static ApiResponse
static ApiResponse
static ApiResponse
static ApiResponse
static ApiResponse
unsupportedMediaType
(Object object) static ApiResponse
unsupportedMediaType
(String message) static ApiResponse
unsupportedMediaType
(String message, Object object) static ApiResponse
unUsed()
static ApiResponse
static ApiResponse
static ApiResponse
static ApiResponse
useProxy()
static ApiResponse
static ApiResponse
static ApiResponse
-
Constructor Details
-
Payload
public Payload()
-
-
Method Details
-
api
For responses -
api
-
api
-
api
-
api
-
api
public static ApiResponse api(HttpStatus status, Object object, long totalElements, long totalPages, long page) -
api
public static ApiResponse api(HttpStatus status, Object object, long totalElements, long totalPages, long page, boolean success) -
api
-
api
-
api
-
continues
Success -
continues
-
continues
-
continues
-
switchingProtocols
-
switchingProtocols
-
switchingProtocols
-
switchingProtocols
-
ok
-
ok
-
ok
-
ok
-
ok
public static ApiResponse ok(Object object, long totalElements, long totalPages, long page, boolean success) -
ok
-
created
-
created
-
created
-
created
-
accepted
-
accepted
-
accepted
-
accepted
-
nonAuthoritativeInformation
-
nonAuthoritativeInformation
-
nonAuthoritativeInformation
-
nonAuthoritativeInformation
-
noContent
-
noContent
-
noContent
-
noContent
-
resetContent
-
resetContent
-
resetContent
-
resetContent
-
partialContent
-
partialContent
-
partialContent
-
partialContent
-
multipleChoices
-
multipleChoices
-
multipleChoices
-
multipleChoices
-
movedPermanently
-
movedPermanently
-
movedPermanently
-
movedPermanently
-
found
-
found
-
found
-
found
-
seeOther
-
seeOther
-
seeOther
-
seeOther
-
notModified
-
notModified
-
notModified
-
notModified
-
useProxy
-
useProxy
-
useProxy
-
useProxy
-
unUsed
-
unUsed
-
unUsed
-
unUsed
-
temporaryRedirect
-
temporaryRedirect
-
temporaryRedirect
-
temporaryRedirect
-
badRequest
Errors -
badRequest
-
badRequest
-
badRequest
-
unauthorized
-
unauthorized
-
unauthorized
-
unauthorized
-
paymentRequired
-
paymentRequired
-
paymentRequired
-
paymentRequired
-
forbidden
-
forbidden
-
forbidden
-
forbidden
-
notFound
-
notFound
-
notFound
-
notFound
-
methodNotAllowed
-
methodNotAllowed
-
methodNotAllowed
-
methodNotAllowed
-
notAcceptable
-
notAcceptable
-
notAcceptable
-
notAcceptable
-
proxyAuthenticationRequired
-
proxyAuthenticationRequired
-
proxyAuthenticationRequired
-
proxyAuthenticationRequired
-
requestTimeout
-
requestTimeout
-
requestTimeout
-
requestTimeout
-
conflict
-
conflict
-
conflict
-
conflict
-
gone
-
gone
-
gone
-
gone
-
lengthRequired
-
lengthRequired
-
lengthRequired
-
lengthRequired
-
preconditionFailed
-
preconditionFailed
-
preconditionFailed
-
preconditionFailed
-
requestEntityTooLarge
-
requestEntityTooLarge
-
requestEntityTooLarge
-
requestEntityTooLarge
-
requestedURITooLong
-
requestedURITooLong
-
requestedURITooLong
-
requestedURITooLong
-
unsupportedMediaType
-
unsupportedMediaType
-
unsupportedMediaType
-
unsupportedMediaType
-
requestRangeNotSatisfiable
-
requestRangeNotSatisfiable
-
requestRangeNotSatisfiable
-
requestRangeNotSatisfiable
-
expectationFailed
-
expectationFailed
-
expectationFailed
-
expectationFailed
-
imATeapot
-
imATeapot
-
imATeapot
-
imATeapot
-
tooManyRequest
-
tooManyRequest
-
tooManyRequest
-
tooManyRequest
-
internalServerError
-
internalServerError
-
internalServerError
-
internalServerError
-
notImplemented
-
notImplemented
-
notImplemented
-
notImplemented
-
badGateway
-
badGateway
-
badGateway
-
badGateway
-
gatewayTimeout
-
gatewayTimeout
-
gatewayTimeout
-
gatewayTimeout
-
httpVersionNotSupported
-
httpVersionNotSupported
-
httpVersionNotSupported
-
httpVersionNotSupported
-
unknown
-
unknown
-
unknown
-
unknown
-