public class RestServerResponse
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
ContentType |
contentType |
java.lang.Object |
result |
Status |
status |
| Constructor and Description |
|---|
RestServerResponse(Status status,
ContentType contentType,
java.lang.Object result) |
| Modifier and Type | Method and Description |
|---|---|
long |
getCachePeriodMS() |
long |
send(WebClient client,
HttpServletResponse response) |
void |
setCachePeriod(java.lang.String cachePeriod)
Set the cache period for this response.
|
public final ContentType contentType
public final java.lang.Object result
public final Status status
public RestServerResponse(@Nonnull
Status status,
@Nonnull
ContentType contentType,
java.lang.Object result)
throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentExceptionpublic void setCachePeriod(java.lang.String cachePeriod)
throws java.lang.IllegalArgumentException
cachePeriod - the cache periodjava.lang.IllegalArgumentException - the period can't be parsed.public long getCachePeriodMS()
public long send(WebClient client, HttpServletResponse response) throws java.lang.Exception
java.lang.ExceptionstSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.