Class AbstractApiAuthController.ApiEntity
-
- All Implemented Interfaces:
public class AbstractApiAuthController.ApiEntity
-
-
Field Summary
Fields Modifier and Type Field Description public Stringtimestamppublic Stringsignaturepublic Stringdigestpublic TerminalContext.Contextterminalpublic Map<String, String>reqParapublic StringreqBodypublic Map<String, Part>reqFilepublic AbstractApiAuthController.ApiErrorerrorpublic StringresTextpublic InputStreamresFilepublic Map<String, String>resHead
-
Constructor Summary
Constructors Constructor Description AbstractApiAuthController.ApiEntity()
-
Method Summary
Modifier and Type Method Description StringgetTimestamp()Timestamp in the Request Header voidsetTimestamp(@NotNull() String timestamp)Timestamp in the Request Header StringgetSignature()Signature in the Request Header voidsetSignature(@NotNull() String signature)Signature in the Request Header StringgetDigest()Digest in the Request Header voidsetDigest(@NotNull() String digest)Digest in the Request Header TerminalContext.ContextgetTerminal()Terminal info, NotNull if pass the validation voidsetTerminal(@NotNull() TerminalContext.Context terminal)Terminal info, NotNull if pass the validation Map<String, String>getReqPara()Request Param. voidsetReqPara(@NotNull() Map<String, String> reqPara)Request Param. StringgetReqBody()Request Body, e.g. voidsetReqBody(@NotNull() String reqBody)Request Body, e.g. Map<String, Part>getReqFile()Request File, filename in `name` voidsetReqFile(@NotNull() Map<String, Part> reqFile)Request File, filename in `name` AbstractApiAuthController.ApiErrorgetError()Response An Error voidsetError(AbstractApiAuthController.ApiError error)Response An Error StringgetResText()Response Body if resFile=null, otherwise the filename voidsetResText(@NotNull() String resText)Response Body if resFile=null, otherwise the filename InputStreamgetResFile()Response File voidsetResFile(@Nullable() InputStream resFile)Response File Map<String, String>getResHead()Response header voidsetResHead(@NotNull() Map<String, String> resHead)Response header booleanequals(@Nullable() Object o)inthashCode()StringtoString()-
-
Method Detail
-
getTimestamp
@NotNull() String getTimestamp()
Timestamp in the Request Header
-
setTimestamp
void setTimestamp(@NotNull() String timestamp)
Timestamp in the Request Header
-
getSignature
@NotNull() String getSignature()
Signature in the Request Header
-
setSignature
void setSignature(@NotNull() String signature)
Signature in the Request Header
-
getTerminal
@NotNull() TerminalContext.Context getTerminal()
Terminal info, NotNull if pass the validation
-
setTerminal
void setTerminal(@NotNull() TerminalContext.Context terminal)
Terminal info, NotNull if pass the validation
-
getReqPara
@NotNull() Map<String, String> getReqPara()
Request Param. if key with multiple values, then join them to one
-
setReqPara
void setReqPara(@NotNull() Map<String, String> reqPara)
Request Param. if key with multiple values, then join them to one
-
getReqBody
@NotNull() String getReqBody()
Request Body, e.g. json, UTF8. can be get by @RequestBody or file
-
setReqBody
void setReqBody(@NotNull() String reqBody)
Request Body, e.g. json, UTF8. can be get by @RequestBody or file
-
getReqFile
@NotNull() Map<String, Part> getReqFile()
Request File, filename in `name`
-
setReqFile
void setReqFile(@NotNull() Map<String, Part> reqFile)
Request File, filename in `name`
-
getError
AbstractApiAuthController.ApiError getError()
Response An Error
-
setError
void setError(AbstractApiAuthController.ApiError error)
Response An Error
-
getResText
@NotNull() String getResText()
Response Body if resFile=null, otherwise the filename
-
setResText
void setResText(@NotNull() String resText)
Response Body if resFile=null, otherwise the filename
-
getResFile
@Nullable() InputStream getResFile()
Response File
-
setResFile
void setResFile(@Nullable() InputStream resFile)
Response File
-
getResHead
@NotNull() Map<String, String> getResHead()
Response header
-
setResHead
void setResHead(@NotNull() Map<String, String> resHead)
Response header
-
hashCode
int hashCode()
-
-
-
-