public class JsResponse extends Object
| Modifier and Type | Method and Description |
|---|---|
Iterable<JsContent> |
getAllJsContent()
Returns an iterator starting at the beginning of all JS code in the response.
|
int |
getCacheTtlSecs()
Returns the cache TTL in seconds for this response.
|
List<String> |
getErrors()
Returns a list of any error messages associated with this response.
|
String |
getExterns()
Returns a string of generated externs.
|
int |
getStatusCode()
Returns the HTTP status code.
|
boolean |
isError()
Returns whether the current response code is an error code.
|
boolean |
isProxyCacheable()
Returns whether the response can be cached by intermediary proxies.
|
String |
toErrorString()
Returns a string of all error messages associated with this response.
|
String |
toJsString()
Returns the JavaScript code to serve.
|
public String toJsString()
public Iterable<JsContent> getAllJsContent()
public int getStatusCode()
public boolean isError()
public int getCacheTtlSecs()
public boolean isProxyCacheable()
public List<String> getErrors()
public String toErrorString()
public String getExterns()
Copyright © 2007-2014 The Apache Software Foundation. All Rights Reserved.