public class JsonpRepresentation extends WriterRepresentation
UNKNOWN_SIZE| Constructor and Description |
|---|
JsonpRepresentation(String callback,
Status status,
Representation wrappedRepresentation)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getCallback()
Returns the name of the JavaScript callback method.
|
long |
getSize() |
Status |
getStatus()
Returns the actual status code.
|
void |
write(Writer writer) |
getReadergetChannel, getStream, write, writeappend, exhaust, getAvailableSize, getDigest, getDisposition, getExpirationDate, getRange, getRegistration, getText, hasKnownSize, isAvailable, isEmpty, isSelectable, isTransient, release, setAvailable, setDigest, setDisposition, setExpirationDate, setListener, setRange, setSize, setTransientgetModificationDate, getTag, setModificationDate, setTagcreateClientInfo, equals, getCharacterSet, getEncodings, getLanguages, getLocationRef, getMediaType, hashCode, includes, isCompatible, setCharacterSet, setEncodings, setLanguages, setLocationRef, setLocationRef, setMediaType, toStringpublic JsonpRepresentation(String callback, Status status, Representation wrappedRepresentation)
callback - The name of the JavaScript callback method.status - The actual status code.wrappedRepresentation - public String getCallback()
public long getSize()
getSize in class Representationpublic Status getStatus()
public void write(Writer writer) throws IOException
write in class RepresentationIOExceptionCopyright © 2005-2017 Restlet.