public class JsonpRepresentation extends WriterRepresentation
UNKNOWN_SIZE
Constructor and Description |
---|
JsonpRepresentation(java.lang.String callback,
Status status,
Representation wrappedRepresentation)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCallback()
Returns the name of the JavaScript callback method.
|
long |
getSize() |
Status |
getStatus()
Returns the actual status code.
|
void |
write(java.io.Writer writer) |
getReader
getChannel, getStream, write, write
append, exhaust, getAvailableSize, getDigest, getDisposition, getExpirationDate, getRange, getText, hasKnownSize, isAvailable, isEmpty, isTransient, release, setAvailable, setDigest, setDisposition, setExpirationDate, setRange, setSize, setTransient
getModificationDate, getTag, setModificationDate, setTag
createClientInfo, equals, getCharacterSet, getEncodings, getLanguages, getLocationRef, getMediaType, hashCode, includes, isCompatible, setCharacterSet, setEncodings, setLanguages, setLocationRef, setLocationRef, setMediaType, toString
public JsonpRepresentation(java.lang.String callback, Status status, Representation wrappedRepresentation)
callback
- The name of the JavaScript callback method.status
- The actual status code.wrappedRepresentation
- public java.lang.String getCallback()
public long getSize()
getSize
in class Representation
public Status getStatus()
public void write(java.io.Writer writer) throws java.io.IOException
write
in class Representation
java.io.IOException
Copyright © 2005-2020 Restlet.