Modifier and Type | Method and Description |
---|---|
Representation |
Message.getEntity()
Returns the entity representation.
|
Modifier and Type | Method and Description |
---|---|
void |
Message.setEntity(Representation entity)
Sets the entity representation.
|
Constructor and Description |
---|
Component(Representation xmlConfigRepresentation)
Deprecated.
Use XML support in the Spring extension instead.
|
Message(Representation entity)
Constructor.
|
Request(Method method,
Reference resourceRef,
Representation entity)
Constructor.
|
Request(Method method,
String resourceUri,
Representation entity)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Representation |
ReferenceList.getTextRepresentation()
Returns a representation of the list in the "text/uri-list" format.
|
Representation |
Form.getWebRepresentation()
Returns the form as a Web representation
(MediaType.APPLICATION_WWW_FORM).
|
Representation |
ReferenceList.getWebRepresentation()
Returns a representation of the list in "text/html" format.
|
Representation |
Form.getWebRepresentation(CharacterSet characterSet)
Returns the form as a Web representation
(MediaType.APPLICATION_WWW_FORM).
|
Constructor and Description |
---|
Form(Representation webForm)
Constructor.
|
Form(Representation webForm,
boolean decode)
Constructor.
|
ReferenceList(Representation uriList)
Constructor from a "text/uri-list" representation.
|
Modifier and Type | Method and Description |
---|---|
Representation |
HttpRequest.getEntity()
Returns the representation provided by the client.
|
protected Representation |
Call.getRepresentation(InputStream stream)
Returns the representation wrapping the given stream.
|
protected Representation |
Call.getRepresentation(ReadableByteChannel channel)
Returns the representation wrapping the given channel.
|
Representation |
ServerCall.getRequestEntity()
Returns the request entity if available.
|
Representation |
ClientCall.getResponseEntity(Response response)
Returns the response entity if available.
|
Modifier and Type | Method and Description |
---|---|
void |
HttpRequest.setEntity(Representation entity) |
protected void |
ServerCall.writeResponseBody(Representation entity,
OutputStream responseEntityStream)
Effectively writes the response body.
|
Modifier and Type | Class and Description |
---|---|
class |
DecodeRepresentation
Representation that decodes a wrapped representation if its encoding is
supported.
|
class |
EncodeRepresentation
Content that encodes a wrapped content.
|
class |
RangeRepresentation
Representation that exposes only a range of the content of a wrapped
representation.
|
Modifier and Type | Method and Description |
---|---|
Representation |
Decoder.decode(Representation representation)
Decodes a given representation if its encodings are supported by NRE.
|
Representation |
Encoder.encode(ClientInfo client,
Representation representation)
Encodes a given representation if an encoding is supported by the client.
|
Modifier and Type | Method and Description |
---|---|
boolean |
Decoder.canDecode(Representation representation)
Indicates if a representation can be decoded.
|
Representation |
Decoder.decode(Representation representation)
Decodes a given representation if its encodings are supported by NRE.
|
Representation |
Encoder.encode(ClientInfo client,
Representation representation)
Encodes a given representation if an encoding is supported by the client.
|
Constructor and Description |
---|
DecodeRepresentation(Representation wrappedRepresentation)
Constructor.
|
EncodeRepresentation(Encoding encoding,
Representation wrappedRepresentation)
Constructor.
|
RangeRepresentation(Representation wrappedRepresentation)
Constructor.
|
RangeRepresentation(Representation wrappedRepresentation,
Range range)
Constructor.
|
Constructor and Description |
---|
ComponentXmlParser(Component component,
Representation xmlConfiguration)
Deprecated.
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected Representation |
HttpUrlConnectionCall.getRepresentation(InputStream stream) |
Modifier and Type | Method and Description |
---|---|
protected Representation |
StatusInfoHtmlConverter.toHtml(StatusInfo status)
Returns a representation for the given status.
In order to customize the default representation, this method can be overridden. |
Representation |
StatusInfoHtmlConverter.toRepresentation(Object source,
Variant target,
Resource resource) |
Representation |
DefaultConverter.toRepresentation(Object source,
Variant target,
Resource resource) |
abstract Representation |
ConverterHelper.toRepresentation(Object source,
Variant target,
Resource resource)
Converts a regular Java object into a Representation.
|
Modifier and Type | Method and Description |
---|---|
static <T> ConverterHelper |
ConverterUtils.getBestHelper(Representation source,
Class<T> target,
Resource resource)
Returns the best converter helper matching the given parameters.
|
<T> float |
StatusInfoHtmlConverter.score(Representation source,
Class<T> target,
Resource resource) |
<T> float |
DefaultConverter.score(Representation source,
Class<T> target,
Resource resource) |
abstract <T> float |
ConverterHelper.score(Representation source,
Class<T> target,
Resource resource)
Scores the affinity of this helper with the source class.
|
<T> T |
StatusInfoHtmlConverter.toObject(Representation source,
Class<T> target,
Resource resource) |
<T> T |
DefaultConverter.toObject(Representation source,
Class<T> target,
Resource resource) |
abstract <T> T |
ConverterHelper.toObject(Representation source,
Class<T> target,
Resource resource)
Converts a Representation into a regular Java object.
|
Modifier and Type | Method and Description |
---|---|
static Representation |
HeaderUtils.extractEntityHeaders(Iterable<Header> headers,
Representation representation)
Extracts entity headers and updates a given representation or create an
empty one when at least one entity header is present.
|
Modifier and Type | Method and Description |
---|---|
static void |
HeaderUtils.addEntityHeaders(Representation entity,
Series<Header> headers)
Adds the entity headers based on the
Representation to the
Series . |
static void |
HeaderUtils.addNotModifiedEntityHeaders(Representation entity,
Series<Header> headers)
Adds the entity headers based on the
Representation to the
Series when a 304 (Not Modified) status is returned. |
static Representation |
HeaderUtils.extractEntityHeaders(Iterable<Header> headers,
Representation representation)
Extracts entity headers and updates a given representation or create an
empty one when at least one entity header is present.
|
static void |
RangeReader.update(String value,
Representation representation)
Parse the Content-Range header value and update the given representation.
|
static String |
ContentType.writeHeader(Representation representation)
Writes the HTTP "Content-Type" header.
|
Constructor and Description |
---|
ContentType(Representation representation)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
static long |
IoUtils.getAvailableSize(Representation representation)
Returns the size effectively available.
|
static ReadableByteChannel |
IoUtils.getChannel(Representation representation)
Returns a readable byte channel based on the given representation's
content and its write(WritableByteChannel) method.
|
static InputStream |
IoUtils.getStream(Representation representation)
Returns an input stream based on the given representation's content and
its write(OutputStream) method.
|
static String |
IoUtils.getText(Representation representation)
Converts the representation to a string value.
|
Modifier and Type | Class and Description |
---|---|
class |
ZipEntryRepresentation
An entry in a Zip/JAR file.
|
Modifier and Type | Method and Description |
---|---|
Representation |
DirectoryServerResource.delete() |
protected Representation |
DirectoryServerResource.get() |
abstract Representation |
Entity.getRepresentation(MediaType defaultMediaType,
int timeToLive)
Returns a representation of this local entity.
|
Representation |
ZipEntryEntity.getRepresentation(MediaType defaultMediaType,
int timeToLive) |
Representation |
FileEntity.getRepresentation(MediaType defaultMediaType,
int timeToLive) |
Representation |
DirectoryServerResource.handle() |
Representation |
DirectoryServerResource.put(Representation entity) |
Modifier and Type | Method and Description |
---|---|
Representation |
DirectoryServerResource.put(Representation entity) |
Modifier and Type | Method and Description |
---|---|
MethodAnnotationInfo |
AnnotationUtils.getMethodAnnotation(List<AnnotationInfo> annotations,
Method restletMethod,
Form query,
Representation entity,
MetadataService metadataService,
ConverterService converterService)
Returns the first annotation descriptor matching the given Restlet
method.
|
boolean |
MethodAnnotationInfo.isCompatible(Method restletMethod,
Form queryParams,
Representation requestEntity,
MetadataService metadataService,
ConverterService converterService)
Indicates if the annotated method described is compatible with the given
parameters.
|
boolean |
MethodAnnotationInfo.isCompatibleRequestEntity(Representation requestEntity,
MetadataService metadataService,
ConverterService converterService)
Indicates if the given request entity is compatible with the annotated
method described.
|
Modifier and Type | Method and Description |
---|---|
static Parameter |
FormUtils.getFirstParameter(Representation post,
String name)
Reads the first parameter with the given name.
|
static Object |
FormUtils.getParameter(Representation form,
String name)
Reads the parameters with the given name.
If multiple values are found, a list is returned created. |
static void |
FormUtils.getParameters(Representation post,
Map<String,Object> parameters)
Reads the parameters whose name is a key in the given map.
If a matching parameter is found, its value is put in the map. If multiple values are found, a list is created and set in the map. |
static void |
FormUtils.parse(Form form,
Representation post,
boolean decode)
Parses a post into a given form.
|
Constructor and Description |
---|
FormReader(Representation representation)
Constructor.
In case the representation does not define a character set, the UTF-8 character set is used. |
FormReader(Representation representation,
boolean decode)
Constructor.
In case the representation does not define a character set, the UTF-8 character set is used. |
Modifier and Type | Class and Description |
---|---|
class |
Categories
Collection of
Category entries. |
class |
Entry
Represents an individual entry, acting as a component for metadata and data
associated with the entry.
|
class |
Feed
Atom Feed Document, acting as a component for metadata and data associated
with the feed.
|
class |
Service
Represents an Atom introspection document.
|
Modifier and Type | Method and Description |
---|---|
Representation |
Content.getInlineContent()
Returns the representation for inline content.
|
Representation |
Service.getResource(String uri)
Retrieves a resource representation.
|
Representation |
AtomConverter.toRepresentation(Object source,
Variant target,
Resource resource) |
Modifier and Type | Method and Description |
---|---|
Reference |
Collection.postMember(Representation member)
Posts a member to the collection resulting in the creation of a new
resource.
|
<T> float |
AtomConverter.score(Representation source,
Class<T> target,
Resource resource) |
void |
Content.setInlineContent(Representation inlineContent)
Sets the representation for inline content.
|
<T> T |
AtomConverter.toObject(Representation source,
Class<T> target,
Resource resource) |
Status |
Service.updateResource(String uri,
Representation updatedRepresentation)
Updates a resource representation.
|
Constructor and Description |
---|
Categories(Representation categoriesFeed)
Constructor.
|
Entry(Representation xmlEntry)
Constructor.
|
Entry(Representation xmlEntry,
EntryReader entryReader)
Constructor.
|
Feed(Representation xmlFeed)
Constructor.
|
Feed(Representation xmlFeed,
FeedReader feedReader)
Constructor.
|
Service(Representation xmlService)
Constructor.
|
Service(Restlet clientDispatcher,
String serviceUri,
Representation xmlService)
Constructor.
|
Service(String serviceUri,
Representation xmlService)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
org.apache.commons.fileupload.FileItemIterator |
RestletFileUpload.getItemIterator(Representation multipartForm)
Processes an RFC 1867
compliant
multipart/form-data input representation. |
List<org.apache.commons.fileupload.FileItem> |
RestletFileUpload.parseRepresentation(Representation multipartForm)
Processes an RFC 1867
compliant
multipart/form-data input representation. |
Constructor and Description |
---|
RepresentationContext(Representation multipartForm)
Constructor.
|
Modifier and Type | Class and Description |
---|---|
class |
TemplateRepresentation
FreeMarker template representation.
|
Modifier and Type | Method and Description |
---|---|
Representation |
FreemarkerConverter.toRepresentation(Object source,
Variant target,
Resource resource) |
Modifier and Type | Method and Description |
---|---|
static freemarker.template.Template |
TemplateRepresentation.getTemplate(freemarker.template.Configuration config,
Representation templateRepresentation)
Returns a FreeMarker template from a representation and a configuration.
|
<T> float |
FreemarkerConverter.score(Representation source,
Class<T> target,
Resource resource) |
<T> T |
FreemarkerConverter.toObject(Representation source,
Class<T> target,
Resource resource) |
Constructor and Description |
---|
TemplateRepresentation(Representation templateRepresentation,
freemarker.template.Configuration config,
MediaType mediaType)
Constructor.
|
TemplateRepresentation(Representation templateRepresentation,
freemarker.template.Configuration config,
Object dataModel,
MediaType mediaType)
Constructor.
|
TemplateRepresentation(Representation templateRepresentation,
MediaType mediaType)
Constructor.
|
TemplateRepresentation(Representation templateRepresentation,
Object dataModel,
MediaType mediaType)
Constructor.
|
Modifier and Type | Class and Description |
---|---|
class |
GsonRepresentation<T>
Representation based on a JSON document.
|
Modifier and Type | Method and Description |
---|---|
Representation |
GsonConverter.toRepresentation(Object source,
Variant target,
Resource resource) |
Modifier and Type | Method and Description |
---|---|
protected <T> GsonRepresentation<T> |
GsonConverter.create(Representation source,
Class<T> objectClass)
Creates the unmarshaling
GsonRepresentation . |
<T> float |
GsonConverter.score(Representation source,
Class<T> target,
Resource resource) |
<T> T |
GsonConverter.toObject(Representation source,
Class<T> target,
Resource resource) |
Constructor and Description |
---|
GsonRepresentation(Representation representation,
Class<T> objectClass)
Constructor.
|
Modifier and Type | Class and Description |
---|---|
class |
FormDataSet
HTML form supporting either URL encoding or multipart encoding.
|
Modifier and Type | Method and Description |
---|---|
Representation |
FormData.getValueRepresentation()
Returns the value of the associated form control, either textual or
binary.
|
Representation |
HtmlConverter.toRepresentation(Object source,
Variant target,
Resource resource) |
Modifier and Type | Method and Description |
---|---|
<T> float |
HtmlConverter.score(Representation source,
Class<T> target,
Resource resource) |
void |
FormData.setValueRepresentation(Representation valueRepresentation)
Sets the value of the associated form control as a full fledged
representation.
|
<T> T |
HtmlConverter.toObject(Representation source,
Class<T> target,
Resource resource) |
Constructor and Description |
---|
FormData(String name,
Representation valueRepresentation)
Constructor.
|
FormDataSet(Representation formRepresentation)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
static void |
FormUtils.getEntries(Representation post,
Map<String,Object> entries)
Reads the entries whose name is a key in the given map.
If a matching entry is found, its value is put in the map. If multiple values are found, a list is created and set in the map. |
static Object |
FormUtils.getEntry(Representation form,
String name)
Reads the entries with the given name.
If multiple values are found, a list is returned created. |
static FormData |
FormUtils.getFirstEntry(Representation post,
String name)
Reads the first entry with the given name.
|
static void |
FormUtils.parse(Series<FormData> entries,
Representation post)
Parses a post into a given entries series.
|
Constructor and Description |
---|
FormReader(Representation representation)
Constructor.
In case the representation does not define a character set, the UTF-8 character set is used. |
Modifier and Type | Class and Description |
---|---|
class |
JacksonRepresentation<T>
Representation based on the Jackson library.
|
Modifier and Type | Method and Description |
---|---|
Representation |
JacksonConverter.toRepresentation(Object source,
Variant target,
Resource resource) |
Modifier and Type | Method and Description |
---|---|
protected <T> JacksonRepresentation<T> |
JacksonConverter.create(Representation source,
Class<T> objectClass)
Creates the unmarshaling
JacksonRepresentation . |
<T> float |
JacksonConverter.score(Representation source,
Class<T> target,
Resource resource) |
<T> T |
JacksonConverter.toObject(Representation source,
Class<T> target,
Resource resource) |
Constructor and Description |
---|
JacksonRepresentation(Representation representation,
Class<T> objectClass)
Constructor.
|
Modifier and Type | Class and Description |
---|---|
class |
MessageRepresentation
XML representation of a JavaMail message.
|
class |
MessagesRepresentation
XML representation of a list of JavaMail messages.
|
Modifier and Type | Method and Description |
---|---|
protected Representation |
JavaMailClientHelper.createRepresentation(javax.mail.Message message)
Creates an XML representation based on a JavaMail message.
|
protected Representation |
JavaMailClientHelper.createRepresentation(javax.mail.Message[] messages,
com.sun.mail.pop3.POP3Folder inbox)
Creates an XML representation based on a list of JavaMail messages.
|
protected Representation |
TriggerResource.getMail(String identifier)
Get the mail representation according to its identifier.
|
protected Representation |
TriggerResource.getResponseRepresentation(List<String> mailsSuccessful,
Map<String,String> mailsUnsuccessful)
Returns the response's representation according to the list of
successfull and unsuccessfull mails.
|
protected Representation |
TriggerResource.getTargetEntity(Resolver<String> resolver)
Returns the entity sent to the target.
|
Representation |
JavaMailConverter.toRepresentation(Object source,
Variant target,
Resource resource) |
Modifier and Type | Method and Description |
---|---|
void |
TriggerResource.acceptMails(Representation entity)
Handles POST requests.
|
protected javax.mail.Message |
JavaMailClientHelper.createMessage(Representation xmlMessage,
javax.mail.Session session)
Creates a JavaMail message by parsing an XML representation.
|
protected MailResolver |
TriggerResource.getResolver(String mailIdentifier,
Representation email)
Returns a new resolver based on a mail.
|
<T> float |
JavaMailConverter.score(Representation source,
Class<T> target,
Resource resource) |
<T> T |
JavaMailConverter.toObject(Representation source,
Class<T> target,
Resource resource) |
Constructor and Description |
---|
MailResolver(String identifier,
Representation mail)
Constructor.
|
RepresentationMessage(Representation xmlMessage,
javax.mail.Session session)
Creates a JavaMail message by parsing an XML representation.
|
Modifier and Type | Class and Description |
---|---|
class |
JaxbRepresentation<T>
An XML representation based on JAXB that provides easy translation between
XML and JAXB element class trees.
|
Modifier and Type | Method and Description |
---|---|
Representation |
JaxbConverter.toRepresentation(Object source,
Variant target,
Resource resource) |
Modifier and Type | Method and Description |
---|---|
<T> float |
JaxbConverter.score(Representation source,
Class<T> target,
Resource resource) |
<T> T |
JaxbConverter.toObject(Representation source,
Class<T> target,
Resource resource) |
Constructor and Description |
---|
JaxbRepresentation(Representation xmlRepresentation,
Class<T> type)
Creates a new JAXB representation, converting the input XML into a Java
content tree.
|
JaxbRepresentation(Representation xmlRepresentation,
Class<T> type,
ValidationEventHandler validationHandler)
Creates a new JAXB representation, converting the input XML into a Java
content tree.
|
JaxbRepresentation(Representation xmlRepresentation,
String contextPath)
Creates a new JAXB representation, converting the input XML into a Java
content tree.
|
JaxbRepresentation(Representation xmlRepresentation,
String contextPath,
ValidationEventHandler validationHandler)
Creates a new JAXB representation, converting the input XML into a Java
content tree.
|
JaxbRepresentation(Representation xmlRepresentation,
String contextPath,
ValidationEventHandler validationHandler,
ClassLoader classLoader)
Creates a new JAXB representation, converting the input XML into a Java
content tree.
|
Modifier and Type | Class and Description |
---|---|
class |
RowSetRepresentation
Deprecated.
Use a persistence technology such as Mybatis or Hibernate
instead.
|
Modifier and Type | Method and Description |
---|---|
Representation |
JdbcConverter.toRepresentation(Object source,
Variant target,
Resource resource)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static Request |
JdbcClientHelper.create(String jdbcURI,
Representation request)
Deprecated.
Creates an uniform call.
|
<T> float |
JdbcConverter.score(Representation source,
Class<T> target,
Resource resource)
Deprecated.
|
<T> T |
JdbcConverter.toObject(Representation source,
Class<T> target,
Resource resource)
Deprecated.
|
Modifier and Type | Class and Description |
---|---|
class |
JibxRepresentation<T>
Deprecated.
Use an XML serialization technology such as Jackson instead.
|
Modifier and Type | Method and Description |
---|---|
Representation |
JibxConverter.toRepresentation(Object source,
Variant target,
Resource resource)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
<T> float |
JibxConverter.score(Representation source,
Class<T> target,
Resource resource)
Deprecated.
|
<T> T |
JibxConverter.toObject(Representation source,
Class<T> target,
Resource resource)
Deprecated.
|
Constructor and Description |
---|
JibxRepresentation(Representation xmlRepresentation,
Class<?> bindingClass)
Deprecated.
Creates a new JIBX representation, that can be used to convert the input
XML into a Java object.
|
JibxRepresentation(Representation xmlRepresentation,
Class<?> bindingClass,
String bindingName)
Deprecated.
Creates a new JIBX representation, that can be used to convert the input
XML into a Java object.
|
Modifier and Type | Method and Description |
---|---|
protected Representation |
InboundWay.createEntity(Series<Header> headers)
Returns the message entity if available.
|
Modifier and Type | Method and Description |
---|---|
protected void |
OutboundWay.addEntityHeaders(Representation entity,
Series<Header> headers)
Adds the entity headers for the given response.
|
protected boolean |
OutboundWay.shouldBeChunked(Representation entity)
Indicates if the entity should be chunked because its length is unknown.
|
Modifier and Type | Method and Description |
---|---|
Representation |
Service.getValue(Object entity)
Returns the binary representation of the given media resource.
|
Representation |
Service.getValue(Object entity,
List<Preference<MediaType>> acceptedMediaTypes)
Returns the binary representation of the given media resource.
|
Representation |
Service.getValue(Object entity,
MediaType mediaType)
Returns the binary representation of the given media resource.
|
Representation |
Service.invokeComplex(String service,
Series<Parameter> parameters)
Invokes a service operation and return the raw representation sent back
by the service.
|
Modifier and Type | Method and Description |
---|---|
void |
Service.setValue(Object entity,
Representation blob)
Sets the value of the given media entry link.
|
Modifier and Type | Class and Description |
---|---|
class |
Metadata
Represents the metadata of an OData service.
|
Constructor and Description |
---|
Metadata(Representation metadata,
Reference metadataRef)
Constructor.
|
Modifier and Type | Class and Description |
---|---|
class |
RdfRepresentation
Generic RDF representation.
|
Modifier and Type | Method and Description |
---|---|
Representation |
Graph.getRdfN3Representation()
Returns a representation in the RDF/n3 format.
|
Representation |
Graph.getRdfNTriplesRepresentation()
Returns a representation in the RDF/N-Triples format.
|
Representation |
Graph.getRdfTurtleRepresentation()
Returns a representation in the RDF/Turtle format.
|
Representation |
Graph.getRdfXmlRepresentation()
Returns a representation in the RDF/XML format.
|
Representation |
RdfConverter.toRepresentation(Object source,
Variant target,
Resource resource) |
Modifier and Type | Method and Description |
---|---|
<T> float |
RdfConverter.score(Representation source,
Class<T> target,
Resource resource) |
<T> T |
RdfConverter.toObject(Representation source,
Class<T> target,
Resource resource) |
Constructor and Description |
---|
RdfRepresentation(Representation rdfRepresentation)
Constructor that parsed a given RDF representation into a link set.
|
Modifier and Type | Method and Description |
---|---|
Representation |
RdfReader.getRdfRepresentation()
Returns the representation to read.
|
Constructor and Description |
---|
RdfReader(Representation rdfRepresentation,
GraphHandler graphHandler)
Constructor.
|
Constructor and Description |
---|
RdfN3Reader(Representation rdfN3Representation,
GraphHandler graphHandler)
Constructor.
|
Constructor and Description |
---|
RdfNTriplesReader(Representation rdfRepresentation,
GraphHandler graphHandler)
Constructor.
|
Constructor and Description |
---|
RdfTurtleReader(Representation rdfN3Representation,
GraphHandler graphHandler)
Constructor.
|
Constructor and Description |
---|
RdfXmlReader(Representation rdfRepresentation,
GraphHandler graphHandler)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Representation |
ServletWarEntity.getRepresentation(MediaType defaultMediaType,
int timeToLive) |
Modifier and Type | Method and Description |
---|---|
Representation |
SipClientResource.bye()
Deprecated.
Indicates to the server that the user agent wishes to release the call.
|
Representation |
SipClientResource.info()
Deprecated.
Communicating mid-session signaling information along the signaling path
for the call.
|
Representation |
SipClientResource.info(Representation representation)
Deprecated.
Communicating mid-session signaling information along the signaling path
for the call.
|
Representation |
SipClientResource.invite()
Deprecated.
Indicates that the user or service is being invited to participate in a
session.
|
Representation |
SipClientResource.invite(Representation representation)
Deprecated.
Indicates that the user or service is being invited to participate in a
session.
|
Representation |
SipClientResource.notify(Representation representation)
Deprecated.
Informs subscribers of changes in state to which the subscriber has a
subscription.
|
Representation |
SipClientResource.options()
Deprecated.
Queries a SIP server as to its capabilities.
|
Modifier and Type | Method and Description |
---|---|
void |
SipClientResource.ack(Representation representation)
Deprecated.
Confirms that the client has received a final response to an INVITE
request.
|
Representation |
SipClientResource.info(Representation representation)
Deprecated.
Communicating mid-session signaling information along the signaling path
for the call.
|
Representation |
SipClientResource.invite(Representation representation)
Deprecated.
Indicates that the user or service is being invited to participate in a
session.
|
Representation |
SipClientResource.notify(Representation representation)
Deprecated.
Informs subscribers of changes in state to which the subscriber has a
subscription.
|
void |
SipClientResource.publish(Representation representation)
Deprecated.
Creates, modifies, and removes event state associated with an
address-of-record.
|
void |
SipClientResource.subscribe(Representation representation)
Deprecated.
Requests current state and state updates from a remote node.
|
Constructor and Description |
---|
SipRequest(Method method,
Reference resourceRef,
Representation entity)
Deprecated.
Constructor.
|
SipRequest(Method method,
String resourceUri,
Representation entity)
Deprecated.
Constructor.
|
Constructor and Description |
---|
SpringResource(Representation representation)
Constructor.
|
SpringResource(Representation representation,
String description)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Representation |
ThymeleafConverter.toRepresentation(Object source,
Variant target,
Resource resource) |
Modifier and Type | Method and Description |
---|---|
<T> float |
ThymeleafConverter.score(Representation source,
Class<T> target,
Resource resource) |
<T> T |
ThymeleafConverter.toObject(Representation source,
Class<T> target,
Resource resource) |
Modifier and Type | Method and Description |
---|---|
Representation |
VelocityConverter.toRepresentation(Object source,
Variant target,
Resource resource) |
Modifier and Type | Method and Description |
---|---|
static Map<String,Representation> |
RepresentationResourceLoader.getStore()
Returns the cache of template representations.
|
Modifier and Type | Method and Description |
---|---|
<T> float |
VelocityConverter.score(Representation source,
Class<T> target,
Resource resource) |
<T> T |
VelocityConverter.toObject(Representation source,
Class<T> target,
Resource resource) |
Constructor and Description |
---|
RepresentationResourceLoader(Representation defaultRepresentation)
Constructor.
|
TemplateRepresentation(Representation templateRepresentation,
Map<String,Object> dataModel,
MediaType mediaType)
Constructor based on a Velocity 'encoded' representation.
|
TemplateRepresentation(Representation templateRepresentation,
MediaType mediaType)
Constructor based on a Velocity 'encoded' representation.
|
Modifier and Type | Class and Description |
---|---|
class |
WadlRepresentation
Root of a WADL description document.
|
Modifier and Type | Method and Description |
---|---|
protected Representation |
WadlApplication.createHtmlRepresentation(ApplicationInfo applicationInfo)
Creates a new HTML representation for a given
ApplicationInfo
instance describing an application. |
protected Representation |
WadlServerResource.createHtmlRepresentation(ApplicationInfo applicationInfo)
Creates a new HTML representation for a given
ApplicationInfo
instance describing an application. |
protected Representation |
WadlApplication.createWadlRepresentation(ApplicationInfo applicationInfo)
Creates a new WADL representation for a given
ApplicationInfo
instance describing an application. |
protected Representation |
WadlServerResource.createWadlRepresentation(ApplicationInfo applicationInfo)
Creates a new WADL representation for a given
ApplicationInfo
instance describing an application. |
protected Representation |
WadlServerResource.describe()
Describes the resource as a standalone WADL document.
|
protected Representation |
WadlServerResource.describe(Variant variant)
Describes the resource as a WADL document for the given variant.
|
Representation |
WadlRepresentation.getHtmlRepresentation()
Returns an HTML representation.
|
Representation |
WadlServerResource.options() |
Representation |
WadlConverter.toRepresentation(Object source,
Variant target,
Resource resource) |
protected Representation |
WadlApplication.wadlRepresent(Request request,
Response response)
Represents the resource as a WADL description.
|
protected Representation |
WadlApplication.wadlRepresent(Variant variant,
Request request,
Response response)
Represents the resource as a WADL description for the given variant.
|
Modifier and Type | Method and Description |
---|---|
WadlApplication |
WadlComponent.attach(Representation wadl)
Attaches an application created from a WADL description document to the
component.
|
<T> float |
WadlConverter.score(Representation source,
Class<T> target,
Resource resource) |
<T> T |
WadlConverter.toObject(Representation source,
Class<T> target,
Resource resource) |
Constructor and Description |
---|
WadlApplication(Context context,
Representation wadl)
Creates an application described using a WADL document.
|
WadlApplication(Representation wadl)
Creates an application described using a WADL document.
|
WadlComponent(Representation wadl)
Constructor based on a given WADL description document.
|
WadlRepresentation(Representation xmlRepresentation)
Constructor.
|
Modifier and Type | Class and Description |
---|---|
class |
DomRepresentation
XML representation based on a DOM document.
|
class |
SaxRepresentation
XML representation for SAX events processing.
|
class |
TransformRepresentation
Representation able to apply an XSLT transformation.
|
class |
XmlRepresentation
Representation based on an XML document.
|
Modifier and Type | Method and Description |
---|---|
Representation |
TransformRepresentation.getSourceRepresentation()
Returns the source representation to transform.
|
Representation |
TransformRepresentation.getTransformSheet()
Returns the XSLT transform sheet to apply to the source representation.
|
Representation |
Transformer.getTransformSheet()
Returns the XSLT transform sheet to apply to message entities.
|
Representation |
XmlConverter.toRepresentation(Object source,
Variant target,
Resource resource) |
Representation |
Transformer.transform(Representation source)
Transforms a source XML representation by applying an XSLT transform
sheet to it.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
Transformer.canTransform(Representation representation)
Indicates if the filter can transform the given message entity.
|
static SAXSource |
XmlRepresentation.getSaxSource(Representation xmlRepresentation)
Returns a SAX source.
|
<T> float |
XmlConverter.score(Representation source,
Class<T> target,
Resource resource) |
void |
XmlRepresentation.setSchema(Representation schemaRepresentation)
Set a schema representation to be compiled and used when parsing and
validating this type of XML representations.
|
void |
TransformRepresentation.setSourceRepresentation(Representation source)
Sets the source representation to transform.
|
void |
TransformRepresentation.setTransformSheet(Representation transformSheet)
Sets the XSLT transform sheet to apply to message entities.
|
void |
Transformer.setTransformSheet(Representation transformSheet)
Sets the XSLT transform sheet to apply to message entities.
|
<T> T |
XmlConverter.toObject(Representation source,
Class<T> target,
Resource resource) |
static SAXSource |
TransformRepresentation.toSaxSource(Representation representation)
Wraps a source representation into a
SAXSource . |
Representation |
Transformer.transform(Representation source)
Transforms a source XML representation by applying an XSLT transform
sheet to it.
|
void |
XmlRepresentation.validate(Representation schemaRepresentation)
Validates the XML representation against a given schema.
|
void |
XmlRepresentation.validate(Representation schemaRepresentation,
Result result)
Validates the XML representation against a given schema.
|
Constructor and Description |
---|
DomRepresentation(Representation xmlRepresentation)
Constructor.
|
SaxRepresentation(Representation xmlRepresentation)
Constructor.
|
Transformer(int mode,
Representation transformSheet)
Constructor.
|
TransformRepresentation(Context context,
Representation source,
Representation transformSheet)
Constructor.
|
TransformRepresentation(Representation source,
Representation transformSheet)
Default constructor.
|
TransformRepresentation(URIResolver uriResolver,
Representation source,
Representation transformSheet)
Constructor.
|
TransformRepresentation(URIResolver uriResolver,
Representation source,
Templates templates)
Constructor.
|
Modifier and Type | Class and Description |
---|---|
class |
XstreamRepresentation<T>
Deprecated.
Use an XML serialization technology such as Jackson instead.
|
Modifier and Type | Method and Description |
---|---|
Representation |
XstreamConverter.toRepresentation(Object source,
Variant target,
Resource resource)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected <T> XstreamRepresentation<T> |
XstreamConverter.create(Representation source,
Class<T> target)
Deprecated.
Creates the unmarshaling
XstreamRepresentation . |
<T> float |
XstreamConverter.score(Representation source,
Class<T> target,
Resource resource)
Deprecated.
|
<T> T |
XstreamConverter.toObject(Representation source,
Class<T> target,
Resource resource)
Deprecated.
|
Constructor and Description |
---|
XstreamRepresentation(Representation representation,
Class<T> targetClass)
Deprecated.
Constructor.
|
Modifier and Type | Class and Description |
---|---|
class |
AppendableRepresentation
Represents an appendable sequence of characters.
|
class |
BufferingRepresentation
Representation capable of buffering the wrapped representation.
|
class |
ByteArrayRepresentation
Representation wrapping a byte array.
|
class |
ChannelRepresentation
Representation based on a NIO byte channel.
|
class |
CharacterRepresentation
Representation based on a BIO character stream.
|
class |
DigesterRepresentation
Representation capable of computing a digest.
|
class |
EmptyRepresentation
Empty representation with no content.
|
class |
FileRepresentation
Representation based on a static file.
|
class |
InputRepresentation
Transient representation based on a BIO input stream.
|
class |
ObjectRepresentation<T extends Serializable>
Representation based on a serializable Java object.
It supports binary representations of JavaBeans using the ObjectInputStream and ObjectOutputStream classes. |
class |
OutputRepresentation
Representation based on a BIO output stream.
|
class |
ReadableRepresentation
Transient representation based on a readable NIO byte channel.
|
class |
ReaderRepresentation
Transient representation based on a BIO characters reader.
|
class |
StreamRepresentation
Representation based on a BIO stream.
|
class |
StringRepresentation
Represents an Unicode string that can be converted to any character set
supported by Java.
|
class |
WritableRepresentation
Representation based on a writable NIO byte channel.
|
class |
WriterRepresentation
Representation based on a BIO characters writer.
|
Constructor and Description |
---|
BufferingRepresentation(Representation bufferedRepresentation)
Constructor.
|
DigesterRepresentation(Representation wrappedRepresentation)
Constructor.
By default, the instance relies on the Digest.ALGORITHM_MD5
digest algorithm. |
DigesterRepresentation(Representation wrappedRepresentation,
String algorithm)
Constructor.
|
ObjectRepresentation(Representation serializedRepresentation)
Constructor reading the object from a serialized representation.
|
ObjectRepresentation(Representation serializedRepresentation,
ClassLoader classLoader)
Constructor reading the object from a serialized representation.
|
ObjectRepresentation(Representation serializedRepresentation,
ClassLoader classLoader,
boolean variantObjectBinarySupported,
boolean variantObjectXmlSupported)
Constructor reading the object from a serialized representation.
|
Modifier and Type | Method and Description |
---|---|
Representation |
ClientResource.delete()
Deletes the target resource and all its representations.
|
protected Representation |
ServerResource.delete()
Deletes the resource and all its representations.
|
Representation |
ClientResource.delete(MediaType mediaType)
Deletes the target resource and all its representations.
|
protected Representation |
ServerResource.delete(Variant variant)
Deletes the resource and all its representations.
|
protected Representation |
ServerResource.describeVariants()
Describes the available variants to help client-side content negotiation.
|
protected Representation |
ServerResource.doConditionalHandle()
Handles a call by first verifying the optional request conditions and
continue the processing if possible.
|
protected Representation |
ServerResource.doHandle()
Effectively handles a call without content negotiation of the response
entity.
|
protected Representation |
ServerResource.doHandle(Variant variant)
Effectively handles a call with content negotiation of the response
entity.
|
protected Representation |
ServerResource.doNegotiatedHandle()
Effectively handles a call with content negotiation of the response
entity.
|
Representation |
ClientResource.get()
Represents the resource using content negotiation to select the best
variant based on the client preferences.
|
protected Representation |
ServerResource.get()
Returns a full representation.
|
Representation |
ClientResource.get(MediaType mediaType)
Represents the resource using a given media type.
|
protected Representation |
ServerResource.get(Variant variant)
Returns a full representation for a given variant.
|
Representation |
Directory.getIndexRepresentation(Variant variant,
ReferenceList indexContent)
Returns an actual index representation for a given variant.
|
Representation |
Resource.getRequestEntity()
Returns the request entity representation.
|
Representation |
Resource.getResponseEntity()
Returns the response entity representation.
|
Representation |
ClientResource.handle()
Handles the call by invoking the next handler.
|
abstract Representation |
Resource.handle()
Handles the call composed of the current context, request and response.
|
Representation |
ServerResource.handle()
Handles any call to this resource.
|
protected Representation |
ClientResource.handle(Method method)
Handles the call by cloning the prototype request, setting the method and
entity.
|
protected Representation |
ClientResource.handle(Method method,
MediaType mediaType)
Handles the call by cloning the prototype request, setting the method and
entity.
|
protected Representation |
ClientResource.handle(Method method,
Representation entity)
Handles the call by cloning the prototype request, setting the method and
entity.
|
protected Representation |
ClientResource.handle(Method method,
Representation entity,
ClientInfo clientInfo)
Handles the call by cloning the prototype request, setting the method and
entity.
|
protected Representation |
ClientResource.handle(Method method,
Representation entity,
MediaType mediaType)
Handles the call by cloning the prototype request, setting the method and
entity.
|
Representation |
ClientResource.handleInbound(Response response)
Handles the inbound call.
|
Representation |
ClientResource.head()
Represents the resource using content negotiation to select the best
variant based on the client preferences.
|
protected Representation |
ServerResource.head()
Returns a representation whose metadata will be returned to the client.
|
Representation |
ClientResource.head(MediaType mediaType)
Represents the resource using a given media type.
|
protected Representation |
ServerResource.head(Variant variant)
Returns a representation whose metadata will be returned to the client.
|
Representation |
ClientResource.options()
Describes the resource using content negotiation to select the best
variant based on the client preferences.
|
protected Representation |
ServerResource.options()
Indicates the communication options available for this resource.
|
Representation |
ClientResource.options(MediaType mediaType)
Describes the resource using a given media type.
|
protected Representation |
ServerResource.options(Variant variant)
Indicates the communication options available for this resource.
|
Representation |
ClientResource.patch(Object entity)
Patches a resource with the given object as delta state.
|
Representation |
ClientResource.patch(Object entity,
MediaType mediaType)
Patches a resource with the given object as delta state.
|
Representation |
ClientResource.patch(Representation entity)
Patches a resource with the given representation as delta state.
|
protected Representation |
ServerResource.patch(Representation entity)
Apply a patch entity to the current representation of the resource
retrieved by calling
ServerResource.get() . |
protected Representation |
ServerResource.patch(Representation entity,
Variant variant)
Apply a patch entity to the current representation of the resource
retrieved by calling
ServerResource.get() . |
Representation |
ClientResource.post(Object entity)
Posts an object entity.
|
Representation |
ClientResource.post(Object entity,
MediaType mediaType)
Posts an object entity.
|
Representation |
ClientResource.post(Representation entity)
Posts a representation.
|
protected Representation |
ServerResource.post(Representation entity)
Posts a representation to the resource at the target URI reference.
|
protected Representation |
ServerResource.post(Representation entity,
Variant variant)
Posts a representation to the resource at the target URI reference.
|
Representation |
ClientResource.put(Object entity)
Puts an object entity.
|
Representation |
ClientResource.put(Object entity,
MediaType mediaType)
Puts an object entity.
|
Representation |
ClientResource.put(Representation entity)
Creates or updates a resource with the given representation as new state
to be stored.
|
protected Representation |
ServerResource.put(Representation entity)
Creates or updates a resource with the given representation as new state
to be stored.
|
protected Representation |
ServerResource.put(Representation representation,
Variant variant)
Creates or updates a resource with the given representation as new state
to be stored.
|
Representation |
Resource.toRepresentation(Object source)
Converts an object into a representation based on the default converter
service variant.
|
Representation |
Resource.toRepresentation(Object source,
MediaType target)
Converts an object into a representation based on a given media type.
|
Representation |
Resource.toRepresentation(Object source,
Variant target)
Converts an object into a representation based on client preferences.
|
Modifier and Type | Method and Description |
---|---|
protected Representation |
ClientResource.handle(Method method,
Representation entity)
Handles the call by cloning the prototype request, setting the method and
entity.
|
protected Representation |
ClientResource.handle(Method method,
Representation entity,
ClientInfo clientInfo)
Handles the call by cloning the prototype request, setting the method and
entity.
|
protected Representation |
ClientResource.handle(Method method,
Representation entity,
MediaType mediaType)
Handles the call by cloning the prototype request, setting the method and
entity.
|
Representation |
ClientResource.patch(Representation entity)
Patches a resource with the given representation as delta state.
|
protected Representation |
ServerResource.patch(Representation entity)
Apply a patch entity to the current representation of the resource
retrieved by calling
ServerResource.get() . |
protected Representation |
ServerResource.patch(Representation entity,
Variant variant)
Apply a patch entity to the current representation of the resource
retrieved by calling
ServerResource.get() . |
Representation |
ClientResource.post(Representation entity)
Posts a representation.
|
protected Representation |
ServerResource.post(Representation entity)
Posts a representation to the resource at the target URI reference.
|
protected Representation |
ServerResource.post(Representation entity,
Variant variant)
Posts a representation to the resource at the target URI reference.
|
Representation |
ClientResource.put(Representation entity)
Creates or updates a resource with the given representation as new state
to be stored.
|
protected Representation |
ServerResource.put(Representation entity)
Creates or updates a resource with the given representation as new state
to be stored.
|
protected Representation |
ServerResource.put(Representation representation,
Variant variant)
Creates or updates a resource with the given representation as new state
to be stored.
|
<T> T |
Resource.toObject(Representation source,
Class<T> target)
Converts a representation into a Java object.
|
Modifier and Type | Method and Description |
---|---|
protected Representation |
Redirector.rewrite(Representation initialEntity)
Optionally rewrites the response entity returned in the
Redirector.MODE_SERVER_INBOUND and Redirector.MODE_SERVER_OUTBOUND modes. |
Modifier and Type | Method and Description |
---|---|
protected Representation |
Redirector.rewrite(Representation initialEntity)
Optionally rewrites the response entity returned in the
Redirector.MODE_SERVER_INBOUND and Redirector.MODE_SERVER_OUTBOUND modes. |
Modifier and Type | Method and Description |
---|---|
Representation |
ConverterService.applyPatch(Representation initial,
Representation patch)
Applies a patch representation to an initial representation in order to
obtain a modified one.
|
Representation |
ConverterService.createPatch(Representation initial,
Representation modified)
Creates a patch representation by calculating a diff between initial and
modified representations.
|
Representation |
StatusService.getRepresentation(Status status,
Request request,
Response response)
Deprecated.
|
Representation |
ConverterService.revertPatch(Representation modified,
Representation patch)
Reverts a patch representation from a modified representation in order to
obtain the initial one.
|
Representation |
ConverterService.toRepresentation(Object source)
Converts a regular Java object into a Representation.
|
Representation |
ConverterService.toRepresentation(Object source,
MediaType target)
Converts a regular Java object into a Representation.
|
Representation |
ConverterService.toRepresentation(Object source,
Variant target)
Converts a regular Java object into a Representation.
|
Representation |
ConverterService.toRepresentation(Object source,
Variant target,
Resource resource)
Converts a regular Java object into a Representation.
|
Representation |
StatusService.toRepresentation(Status status,
Request request,
Response response)
Returns a representation for the given status.
|
Representation |
StatusService.toRepresentation(Status status,
Resource resource)
Returns a representation for the given status.
In order to customize the default representation, this method can be overridden. |
Modifier and Type | Method and Description |
---|---|
void |
ConnectorService.afterSend(Representation entity)
Call-back method invoked by the client or server connectors just after
sending the response to the target component.
|
Representation |
ConverterService.applyPatch(Representation initial,
Representation patch)
Applies a patch representation to an initial representation in order to
obtain a modified one.
|
void |
ConnectorService.beforeSend(Representation entity)
Call-back method invoked by the client or server connectors just before
sending the response to the target component.
|
boolean |
EncoderService.canEncode(Representation representation)
Indicates if a representation can be encoded.
|
Representation |
ConverterService.createPatch(Representation initial,
Representation modified)
Creates a patch representation by calculating a diff between initial and
modified representations.
|
Representation |
ConverterService.revertPatch(Representation modified,
Representation patch)
Reverts a patch representation from a modified representation in order to
obtain the initial one.
|
Object |
ConverterService.toObject(Representation source)
Converts a Representation into a regular Java object.
|
<T> T |
ConverterService.toObject(Representation source,
Class<T> target,
Resource resource)
Converts a Representation into a regular Java object.
|
Modifier and Type | Class and Description |
---|---|
class |
WrapperRepresentation
Representation wrapper.
|
Modifier and Type | Method and Description |
---|---|
Representation |
WrapperRequest.getEntity()
Returns the entity representation.
|
Representation |
WrapperResponse.getEntity()
Returns the entity representation.
|
Representation |
WrapperRepresentation.getWrappedRepresentation()
Returns the wrapped representation.
|
Modifier and Type | Method and Description |
---|---|
void |
WrapperRequest.setEntity(Representation entity)
Sets the entity representation.
|
void |
WrapperResponse.setEntity(Representation entity)
Sets the entity representation.
|
Constructor and Description |
---|
ByteReadingListener(Representation source)
Default constructor.
|
ByteReadingListener(Representation source,
int bufferSize)
Constructor.
|
CharacterReadingListener(Representation source)
Default constructor.
|
CharacterReadingListener(Representation source,
int bufferSize)
Constructor.
|
ReadingListener(Representation source)
Default constructor.
|
ReadingListener(Representation source,
int bufferSize)
Constructor.
|
StringReadingListener(Representation source)
Default constructor.
|
StringReadingListener(Representation source,
int bufferSize)
Constructor.
|
WrapperRepresentation(Representation wrappedRepresentation)
Constructor.
|
Copyright © 2005–2017. All rights reserved.