public class RequestSize extends Object
| Constructor and Description |
|---|
RequestSize() |
| Modifier and Type | Method and Description |
|---|---|
String |
getCode() |
Double |
getFitRatio()
Return how much the request has to be scaled to fit the max allowed size
|
String |
getMaxAllowedSize() |
Long |
getMaxAllowedSizeInBytes() |
String |
getMessage() |
String |
getSize() |
Long |
getSizeInBytes() |
String |
getUnit() |
boolean |
isValid() |
void |
setCode(String code) |
void |
setMaxAllowedSize(String maxAllowedSize) |
void |
setMessage(String message) |
void |
setSize(String size) |
void |
setUnit(String unit) |
String |
toString() |
public String getCode()
public void setCode(String code)
public String getMessage()
public void setMessage(String message)
public String getUnit()
public void setUnit(String unit)
public String getSize()
public void setSize(String size)
public String getMaxAllowedSize()
public void setMaxAllowedSize(String maxAllowedSize)
public Long getSizeInBytes() throws ParseException
ParseExceptionpublic Long getMaxAllowedSizeInBytes() throws ParseException
ParseExceptionpublic Double getFitRatio() throws ParseException
ParseExceptionpublic boolean isValid()
throws ParseException
ParseExceptionCopyright © 2019. All Rights Reserved.