Uses of Class
org.restlet.representation.Representation
-
Packages that use Representation Package Description org.restlet Core classes of the API.org.restlet.data Information exchanged by components.org.restlet.engine.adapter Adapters between low-level HTTP calls and high-level Restlet Request and Response objects.org.restlet.engine.application Supports Restlet applications.org.restlet.engine.component Supports Restlet components.org.restlet.engine.connector Integration with Java URLConnection class.org.restlet.engine.converter Supports the converter service.org.restlet.engine.header Supports HTTP header parsing and formatting.org.restlet.engine.io Supports input and output work.org.restlet.engine.local Supports local connectors and resources.org.restlet.engine.resource Supports resources.org.restlet.engine.util General utilities.org.restlet.ext.atom Support for the Atom syndication and the AtomPub (Atom Publication Protocol) standards in their 1.0 version.org.restlet.ext.emf Integration with EMF @minor-version@.org.restlet.ext.fileupload Integration with Apache FileUpload @minor-version@ library.org.restlet.ext.gson Integration with Gson @minor-version@.org.restlet.ext.html Support for the HTML (HyperText Markup Language) standard in its 4.0 version and above.org.restlet.ext.html.internal org.restlet.ext.jackson Integration with Jackson @minor-version@.org.restlet.ext.javamail Integration with JavaMail @minor-version@ (POP3 and SMTP clients).org.restlet.ext.jaxb Integration with Java XML Binding (JAXB) @minor-version@.org.restlet.ext.jaxrs Support for JAX-RS API.org.restlet.ext.jaxrs.internal.util org.restlet.ext.jaxrs.internal.wrappers.params org.restlet.ext.jetty.internal org.restlet.ext.json Support for JSON representations.org.restlet.ext.nio.internal.way org.restlet.ext.rdf Support for the RDF parsing and generation.org.restlet.ext.rdf.internal org.restlet.ext.rdf.internal.n3 org.restlet.ext.rdf.internal.ntriples org.restlet.ext.rdf.internal.turtle org.restlet.ext.rdf.internal.xml org.restlet.ext.velocity Integration with Apache Velocity @minor-version@.org.restlet.ext.wadl Support the WADL specification.org.restlet.ext.xml Support for XML and XSLT representations.org.restlet.representation Common representation data elements.org.restlet.resource Client and server resource classes.org.restlet.routing Classes related to call routing.org.restlet.service Services used by applications and components.org.restlet.util Various utility classes. -
-
Uses of Representation in org.restlet
Fields in org.restlet declared as Representation Modifier and Type Field Description private RepresentationMessage. entityThe payload of the message.Methods in org.restlet that return Representation Modifier and Type Method Description RepresentationMessage. getEntity()Returns the entity representation.Methods in org.restlet with parameters of type Representation Modifier and Type Method Description voidMessage. setEntity(Representation entity)Sets the entity representation.Constructors in org.restlet with parameters of type Representation Constructor Description Component(Representation xmlConfigRepresentation)Deprecated.Use XML support in the Spring extension instead.Message(Representation entity)Constructor.Request(Method method, java.lang.String resourceUri, Representation entity)Constructor.Request(Method method, Reference resourceRef, Representation entity)Constructor. -
Uses of Representation in org.restlet.data
Methods in org.restlet.data that return Representation Modifier and Type Method Description RepresentationReferenceList. getTextRepresentation()Returns a representation of the list in the "text/uri-list" format.RepresentationForm. getWebRepresentation()Returns the form as a Web representation (MediaType.APPLICATION_WWW_FORM).RepresentationForm. getWebRepresentation(CharacterSet characterSet)Returns the form as a Web representation (MediaType.APPLICATION_WWW_FORM).RepresentationReferenceList. getWebRepresentation()Returns a representation of the list in "text/html" format.Constructors in org.restlet.data with parameters of type Representation Constructor Description Form(Representation webForm)Constructor.Form(Representation webForm, boolean decode)Constructor.ReferenceList(Representation uriList)Constructor from a "text/uri-list" representation. -
Uses of Representation in org.restlet.engine.adapter
Methods in org.restlet.engine.adapter that return Representation Modifier and Type Method Description RepresentationHttpRequest. getEntity()Returns the representation provided by the client.protected RepresentationCall. getRepresentation(java.io.InputStream stream)Returns the representation wrapping the given stream.protected RepresentationCall. getRepresentation(java.nio.channels.ReadableByteChannel channel)Returns the representation wrapping the given channel.RepresentationServerCall. getRequestEntity()Returns the request entity if available.RepresentationClientCall. getResponseEntity(Response response)Returns the response entity if available.Methods in org.restlet.engine.adapter with parameters of type Representation Modifier and Type Method Description voidHttpRequest. setEntity(Representation entity)protected voidServerCall. writeResponseBody(Representation entity, java.io.OutputStream responseEntityStream)Effectively writes the response body. -
Uses of Representation in org.restlet.engine.application
Subclasses of Representation in org.restlet.engine.application Modifier and Type Class Description classDecodeRepresentationRepresentation that decodes a wrapped representation if its encoding is supported.classEncodeRepresentationContent that encodes a wrapped content.classRangeRepresentationRepresentation that exposes only a range of the content of a wrapped representation.Methods in org.restlet.engine.application that return Representation Modifier and Type Method Description RepresentationDecoder. decode(Representation representation)Decodes a given representation if its encodings are supported by NRE.RepresentationEncoder. encode(ClientInfo client, Representation representation)Encodes a given representation if an encoding is supported by the client.Methods in org.restlet.engine.application with parameters of type Representation Modifier and Type Method Description booleanDecoder. canDecode(Representation representation)Indicates if a representation can be decoded.RepresentationDecoder. decode(Representation representation)Decodes a given representation if its encodings are supported by NRE.RepresentationEncoder. encode(ClientInfo client, Representation representation)Encodes a given representation if an encoding is supported by the client.Constructors in org.restlet.engine.application with parameters of type Representation Constructor Description DecodeRepresentation(Representation wrappedRepresentation)Constructor.EncodeRepresentation(Encoding encoding, Representation wrappedRepresentation)Constructor.RangeRepresentation(Representation wrappedRepresentation)Constructor.RangeRepresentation(Representation wrappedRepresentation, Range range)Constructor. -
Uses of Representation in org.restlet.engine.component
Fields in org.restlet.engine.component declared as Representation Modifier and Type Field Description private RepresentationComponentXmlParser. xmlConfigurationDeprecated.The XML configuration to parse.Methods in org.restlet.engine.component that return Representation Modifier and Type Method Description private RepresentationComponentXmlParser. getXmlConfiguration()Deprecated.Returns the XML configuration to parse.Constructors in org.restlet.engine.component with parameters of type Representation Constructor Description ComponentXmlParser(Component component, Representation xmlConfiguration)Deprecated.Constructor. -
Uses of Representation in org.restlet.engine.connector
Subclasses of Representation in org.restlet.engine.connector Modifier and Type Class Description (package private) classConnectionClosingRepresentationRepresentation that wraps another representation and closes the parentHttpURLConnectionwhen the representation is released.Methods in org.restlet.engine.connector that return Representation Modifier and Type Method Description protected RepresentationHttpUrlConnectionCall. getRepresentation(java.io.InputStream stream)Constructors in org.restlet.engine.connector with parameters of type Representation Constructor Description ConnectionClosingRepresentation(Representation wrappedRepresentation, java.net.HttpURLConnection connection)Default constructor. -
Uses of Representation in org.restlet.engine.converter
Methods in org.restlet.engine.converter that return Representation Modifier and Type Method Description protected RepresentationStatusInfoHtmlConverter. toHtml(StatusInfo status)Returns a representation for the given status.
In order to customize the default representation, this method can be overridden.abstract RepresentationConverterHelper. toRepresentation(java.lang.Object source, Variant target, Resource resource)Converts a regular Java object into a Representation.RepresentationDefaultConverter. toRepresentation(java.lang.Object source, Variant target, Resource resource)RepresentationStatusInfoHtmlConverter. toRepresentation(java.lang.Object source, Variant target, Resource resource)Methods in org.restlet.engine.converter with parameters of type Representation Modifier and Type Method Description static <T> ConverterHelperConverterUtils. getBestHelper(Representation source, java.lang.Class<T> target, Resource resource)Returns the best converter helper matching the given parameters.abstract <T> floatConverterHelper. score(Representation source, java.lang.Class<T> target, Resource resource)Scores the affinity of this helper with the source class.<T> floatDefaultConverter. score(Representation source, java.lang.Class<T> target, Resource resource)<T> floatStatusInfoHtmlConverter. score(Representation source, java.lang.Class<T> target, Resource resource)abstract <T> TConverterHelper. toObject(Representation source, java.lang.Class<T> target, Resource resource)Converts a Representation into a regular Java object.<T> TDefaultConverter. toObject(Representation source, java.lang.Class<T> target, Resource resource)<T> TStatusInfoHtmlConverter. toObject(Representation source, java.lang.Class<T> target, Resource resource) -
Uses of Representation in org.restlet.engine.header
Methods in org.restlet.engine.header that return Representation Modifier and Type Method Description static RepresentationHeaderUtils. extractEntityHeaders(java.lang.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.Methods in org.restlet.engine.header with parameters of type Representation Modifier and Type Method Description static voidHeaderUtils. addEntityHeaders(Representation entity, Series<Header> headers)Adds the entity headers based on theRepresentationto theSeries.static voidHeaderUtils. addNotModifiedEntityHeaders(Representation entity, Series<Header> headers)Adds the entity headers based on theRepresentationto theSerieswhen a 304 (Not Modified) status is returned.static RepresentationHeaderUtils. extractEntityHeaders(java.lang.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 voidRangeReader. update(java.lang.String value, Representation representation)Parse the Content-Range header value and update the given representation.static java.lang.StringContentType. writeHeader(Representation representation)Writes the HTTP "Content-Type" header.Constructors in org.restlet.engine.header with parameters of type Representation Constructor Description ContentType(Representation representation)Constructor. -
Uses of Representation in org.restlet.engine.io
Methods in org.restlet.engine.io with parameters of type Representation Modifier and Type Method Description static longIoUtils. getAvailableSize(Representation representation)Returns the size effectively available.static java.nio.channels.ReadableByteChannelIoUtils. getChannel(Representation representation)Returns a readable byte channel based on the given representation's content and its write(WritableByteChannel) method.static java.io.InputStreamIoUtils. getStream(Representation representation)Returns an input stream based on the given representation's content and its write(OutputStream) method.static java.lang.StringIoUtils. getText(Representation representation)Converts the representation to a string value. -
Uses of Representation in org.restlet.engine.local
Subclasses of Representation in org.restlet.engine.local Modifier and Type Class Description classZipEntryRepresentationAn entry in a Zip/JAR file.Fields in org.restlet.engine.local declared as Representation Modifier and Type Field Description private RepresentationDirectoryServerResource. fileContentIf the resource is a file, this contains its content.Methods in org.restlet.engine.local that return Representation Modifier and Type Method Description RepresentationDirectoryServerResource. delete()protected RepresentationDirectoryServerResource. get()abstract RepresentationEntity. getRepresentation(MediaType defaultMediaType, int timeToLive)Returns a representation of this local entity.RepresentationFileEntity. getRepresentation(MediaType defaultMediaType, int timeToLive)RepresentationZipEntryEntity. getRepresentation(MediaType defaultMediaType, int timeToLive)RepresentationDirectoryServerResource. handle()RepresentationDirectoryServerResource. put(Representation entity)Methods in org.restlet.engine.local that return types with arguments of type Representation Modifier and Type Method Description private java.util.Comparator<Representation>DirectoryServerResource. getRepresentationsComparator()Allows to sort the list of representations set by the resource.Methods in org.restlet.engine.local with parameters of type Representation Modifier and Type Method Description private booleanFileClientHelper. checkMetadataConsistency(java.lang.String fileName, Representation representation)Checks that the URI and the representation are compatible.RepresentationDirectoryServerResource. put(Representation entity)private ReferenceListDirectoryServerResource. tryToConvertAsReferenceList(Representation entity)private booleanZipClientHelper. writeEntityStream(Representation entity, java.util.zip.ZipOutputStream out, java.lang.String entryName)Writes an entity to a given ZIP output stream with a given ZIP entry name. -
Uses of Representation in org.restlet.engine.resource
Methods in org.restlet.engine.resource with parameters of type Representation Modifier and Type Method Description MethodAnnotationInfoAnnotationUtils. getMethodAnnotation(java.util.List<AnnotationInfo> annotations, Method restletMethod, Form query, Representation entity, MetadataService metadataService, ConverterService converterService)Returns the first annotation descriptor matching the given Restlet method.booleanMethodAnnotationInfo. isCompatible(Method restletMethod, Form queryParams, Representation requestEntity, MetadataService metadataService, ConverterService converterService)Indicates if the annotated method described is compatible with the given parameters.booleanMethodAnnotationInfo. isCompatibleRequestEntity(Representation requestEntity, MetadataService metadataService, ConverterService converterService)Indicates if the given request entity is compatible with the annotated method described. -
Uses of Representation in org.restlet.engine.util
Methods in org.restlet.engine.util with parameters of type Representation Modifier and Type Method Description private java.lang.ObjectCallResolver. getEncodingsAsString(Representation entity)private java.lang.ObjectCallResolver. getExpirationDateAsString(Representation entity)static ParameterFormUtils. getFirstParameter(Representation post, java.lang.String name)Reads the first parameter with the given name.private java.lang.ObjectCallResolver. getLanguagesAsString(Representation entity)private java.lang.ObjectCallResolver. getModificationDateAsString(Representation entity)static java.lang.ObjectFormUtils. getParameter(Representation form, java.lang.String name)Reads the parameters with the given name.
If multiple values are found, a list is returned created.static voidFormUtils. getParameters(Representation post, java.util.Map<java.lang.String,java.lang.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 voidFormUtils. parse(Form form, Representation post, boolean decode)Parses a post into a given form.Constructors in org.restlet.engine.util with parameters of type Representation Constructor 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. -
Uses of Representation in org.restlet.ext.atom
Subclasses of Representation in org.restlet.ext.atom Modifier and Type Class Description classCategoriesCollection ofCategoryentries.classEntryRepresents an individual entry, acting as a component for metadata and data associated with the entry.classFeedAtom Feed Document, acting as a component for metadata and data associated with the feed.classServiceRepresents an Atom introspection document.Fields in org.restlet.ext.atom declared as Representation Modifier and Type Field Description private RepresentationContent. inlineContentRepresentation for inline content.Methods in org.restlet.ext.atom that return Representation Modifier and Type Method Description RepresentationContent. getInlineContent()Returns the representation for inline content.RepresentationService. getResource(java.lang.String uri)Retrieves a resource representation.RepresentationAtomConverter. toRepresentation(java.lang.Object source, Variant target, Resource resource)Methods in org.restlet.ext.atom with parameters of type Representation Modifier and Type Method Description ReferenceCollection. postMember(Representation member)Posts a member to the collection resulting in the creation of a new resource.<T> floatAtomConverter. score(Representation source, java.lang.Class<T> target, Resource resource)voidContent. setInlineContent(Representation inlineContent)Sets the representation for inline content.<T> TAtomConverter. toObject(Representation source, java.lang.Class<T> target, Resource resource)StatusService. updateResource(java.lang.String uri, Representation updatedRepresentation)Updates a resource representation.Constructors in org.restlet.ext.atom with parameters of type Representation Constructor 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(java.lang.String serviceUri, Representation xmlService)Constructor.Service(Representation xmlService)Constructor.Service(Restlet clientDispatcher, java.lang.String serviceUri, Representation xmlService)Constructor. -
Uses of Representation in org.restlet.ext.emf
Subclasses of Representation in org.restlet.ext.emf Modifier and Type Class Description classEmfRepresentation<T extends org.eclipse.emf.ecore.EObject>Deprecated.Will be removed in next minor release.Fields in org.restlet.ext.emf declared as Representation Modifier and Type Field Description private RepresentationEmfRepresentation. representationDeprecated.The representation to parse.Methods in org.restlet.ext.emf that return Representation Modifier and Type Method Description RepresentationEmfConverter. toRepresentation(java.lang.Object source, Variant target, Resource resource)Deprecated.Methods in org.restlet.ext.emf with parameters of type Representation Modifier and Type Method Description protected <T extends org.eclipse.emf.ecore.EObject>
EmfRepresentation<T>EmfConverter. create(Representation source)Deprecated.Creates the unmarshalingEmfRepresentation.<T> floatEmfConverter. score(Representation source, java.lang.Class<T> target, Resource resource)Deprecated.<T> TEmfConverter. toObject(Representation source, java.lang.Class<T> target, Resource resource)Deprecated.Constructors in org.restlet.ext.emf with parameters of type Representation Constructor Description EmfRepresentation(Representation representation)Deprecated.Constructor. -
Uses of Representation in org.restlet.ext.fileupload
Fields in org.restlet.ext.fileupload declared as Representation Modifier and Type Field Description private RepresentationRepresentationContext. multipartFormThe representation to adapt.Methods in org.restlet.ext.fileupload with parameters of type Representation Modifier and Type Method Description org.apache.commons.fileupload.FileItemIteratorRestletFileUpload. getItemIterator(Representation multipartForm)Processes an RFC 1867 compliantmultipart/form-datainput representation.java.util.List<org.apache.commons.fileupload.FileItem>RestletFileUpload. parseRepresentation(Representation multipartForm)Processes an RFC 1867 compliantmultipart/form-datainput representation.Constructors in org.restlet.ext.fileupload with parameters of type Representation Constructor Description RepresentationContext(Representation multipartForm)Constructor. -
Uses of Representation in org.restlet.ext.gson
Subclasses of Representation in org.restlet.ext.gson Modifier and Type Class Description classGsonRepresentation<T>Representation based on a JSON document.Fields in org.restlet.ext.gson declared as Representation Modifier and Type Field Description private RepresentationGsonRepresentation. jsonRepresentationThe JSON representation to parse.Methods in org.restlet.ext.gson that return Representation Modifier and Type Method Description RepresentationGsonConverter. toRepresentation(java.lang.Object source, Variant target, Resource resource)Methods in org.restlet.ext.gson with parameters of type Representation Modifier and Type Method Description protected <T> GsonRepresentation<T>GsonConverter. create(Representation source, java.lang.Class<T> objectClass)Creates the unmarshalingGsonRepresentation.<T> floatGsonConverter. score(Representation source, java.lang.Class<T> target, Resource resource)<T> TGsonConverter. toObject(Representation source, java.lang.Class<T> target, Resource resource)Constructors in org.restlet.ext.gson with parameters of type Representation Constructor Description GsonRepresentation(Representation representation, java.lang.Class<T> objectClass)Constructor. -
Uses of Representation in org.restlet.ext.html
Subclasses of Representation in org.restlet.ext.html Modifier and Type Class Description classFormDataSetHTML form supporting either URL encoding or multipart encoding.Fields in org.restlet.ext.html declared as Representation Modifier and Type Field Description private RepresentationFormData. valueRepresentationThe value of the associated form control as a full fledged representation.Methods in org.restlet.ext.html that return Representation Modifier and Type Method Description RepresentationFormData. getValueRepresentation()Returns the value of the associated form control, either textual or binary.RepresentationHtmlConverter. toRepresentation(java.lang.Object source, Variant target, Resource resource)Methods in org.restlet.ext.html with parameters of type Representation Modifier and Type Method Description <T> floatHtmlConverter. score(Representation source, java.lang.Class<T> target, Resource resource)voidFormData. setValueRepresentation(Representation valueRepresentation)Sets the value of the associated form control as a full fledged representation.<T> THtmlConverter. toObject(Representation source, java.lang.Class<T> target, Resource resource)Constructors in org.restlet.ext.html with parameters of type Representation Constructor Description FormData(java.lang.String name, Representation valueRepresentation)Constructor.FormDataSet(Representation formRepresentation)Constructor. -
Uses of Representation in org.restlet.ext.html.internal
Methods in org.restlet.ext.html.internal with parameters of type Representation Modifier and Type Method Description static voidFormUtils. getEntries(Representation post, java.util.Map<java.lang.String,java.lang.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 java.lang.ObjectFormUtils. getEntry(Representation form, java.lang.String name)Reads the entries with the given name.
If multiple values are found, a list is returned created.static FormDataFormUtils. getFirstEntry(Representation post, java.lang.String name)Reads the first entry with the given name.static voidFormUtils. parse(Series<FormData> entries, Representation post)Parses a post into a given entries series.Constructors in org.restlet.ext.html.internal with parameters of type Representation Constructor Description FormReader(Representation representation)Constructor.
In case the representation does not define a character set, the UTF-8 character set is used. -
Uses of Representation in org.restlet.ext.jackson
Subclasses of Representation in org.restlet.ext.jackson Modifier and Type Class Description classJacksonRepresentation<T>Representation based on the Jackson library.Fields in org.restlet.ext.jackson declared as Representation Modifier and Type Field Description private RepresentationJacksonRepresentation. representationThe representation to parse.Methods in org.restlet.ext.jackson that return Representation Modifier and Type Method Description RepresentationJacksonConverter. toRepresentation(java.lang.Object source, Variant target, Resource resource)Methods in org.restlet.ext.jackson with parameters of type Representation Modifier and Type Method Description protected <T> JacksonRepresentation<T>JacksonConverter. create(Representation source, java.lang.Class<T> objectClass)Creates the unmarshalingJacksonRepresentation.<T> floatJacksonConverter. score(Representation source, java.lang.Class<T> target, Resource resource)<T> TJacksonConverter. toObject(Representation source, java.lang.Class<T> target, Resource resource)Constructors in org.restlet.ext.jackson with parameters of type Representation Constructor Description JacksonRepresentation(Representation representation, java.lang.Class<T> objectClass)Constructor. -
Uses of Representation in org.restlet.ext.javamail
Subclasses of Representation in org.restlet.ext.javamail Modifier and Type Class Description classMessageRepresentationDeprecated.Will be removed in next major release.classMessagesRepresentationDeprecated.Will be removed in next major release.Methods in org.restlet.ext.javamail that return Representation Modifier and Type Method Description protected RepresentationJavaMailClientHelper. createRepresentation(javax.mail.Message message)Deprecated.Creates an XML representation based on a JavaMail message.protected RepresentationJavaMailClientHelper. createRepresentation(javax.mail.Message[] messages, com.sun.mail.pop3.POP3Folder inbox)Deprecated.Creates an XML representation based on a list of JavaMail messages.protected RepresentationTriggerResource. getMail(java.lang.String identifier)Deprecated.Get the mail representation according to its identifier.protected RepresentationTriggerResource. getResponseRepresentation(java.util.List<java.lang.String> mailsSuccessful, java.util.Map<java.lang.String,java.lang.String> mailsUnsuccessful)Deprecated.Returns the response's representation according to the list of successfull and unsuccessfull mails.protected RepresentationTriggerResource. getTargetEntity(Resolver<java.lang.String> resolver)Deprecated.Returns the entity sent to the target.RepresentationJavaMailConverter. toRepresentation(java.lang.Object source, Variant target, Resource resource)Deprecated.Methods in org.restlet.ext.javamail with parameters of type Representation Modifier and Type Method Description voidTriggerResource. acceptMails(Representation entity)Deprecated.Handles POST requests.protected javax.mail.MessageJavaMailClientHelper. createMessage(Representation xmlMessage, javax.mail.Session session)Deprecated.Creates a JavaMail message by parsing an XML representation.protected MailResolverTriggerResource. getResolver(java.lang.String mailIdentifier, Representation email)Deprecated.Returns a new resolver based on a mail.<T> floatJavaMailConverter. score(Representation source, java.lang.Class<T> target, Resource resource)Deprecated.<T> TJavaMailConverter. toObject(Representation source, java.lang.Class<T> target, Resource resource)Deprecated.Constructors in org.restlet.ext.javamail with parameters of type Representation Constructor Description MailResolver(java.lang.String identifier, Representation mail)Deprecated.Constructor.RepresentationMessage(Representation xmlMessage, javax.mail.Session session)Deprecated.Creates a JavaMail message by parsing an XML representation. -
Uses of Representation in org.restlet.ext.jaxb
Subclasses of Representation in org.restlet.ext.jaxb Modifier and Type Class Description classJaxbRepresentation<T>An XML representation based on JAXB that provides easy translation between XML and JAXB element class trees.Fields in org.restlet.ext.jaxb declared as Representation Modifier and Type Field Description private RepresentationJaxbRepresentation. xmlRepresentationThe source XML representation.Methods in org.restlet.ext.jaxb that return Representation Modifier and Type Method Description RepresentationJaxbConverter. toRepresentation(java.lang.Object source, Variant target, Resource resource)Methods in org.restlet.ext.jaxb with parameters of type Representation Modifier and Type Method Description <T> floatJaxbConverter. score(Representation source, java.lang.Class<T> target, Resource resource)<T> TJaxbConverter. toObject(Representation source, java.lang.Class<T> target, Resource resource)Constructors in org.restlet.ext.jaxb with parameters of type Representation Constructor Description JaxbRepresentation(Representation xmlRepresentation, java.lang.Class<T> type)Creates a new JAXB representation, converting the input XML into a Java content tree.JaxbRepresentation(Representation xmlRepresentation, java.lang.Class<T> type, javax.xml.bind.ValidationEventHandler validationHandler)Creates a new JAXB representation, converting the input XML into a Java content tree.JaxbRepresentation(Representation xmlRepresentation, java.lang.String contextPath)Creates a new JAXB representation, converting the input XML into a Java content tree.JaxbRepresentation(Representation xmlRepresentation, java.lang.String contextPath, javax.xml.bind.ValidationEventHandler validationHandler)Creates a new JAXB representation, converting the input XML into a Java content tree.JaxbRepresentation(Representation xmlRepresentation, java.lang.String contextPath, javax.xml.bind.ValidationEventHandler validationHandler, java.lang.ClassLoader classLoader)Creates a new JAXB representation, converting the input XML into a Java content tree. -
Uses of Representation in org.restlet.ext.jaxrs
Methods in org.restlet.ext.jaxrs that return Representation Modifier and Type Method Description private RepresentationJaxRsRestlet. convertToRepresentation(java.lang.Object entity, ResourceMethod resourceMethod, MediaType jaxRsResponseMediaType, javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.Object> jaxRsRespHeaders, SortedMetadata<MediaType> accMediaTypes)Deprecated.Converts the given entity - returned by the resource method - to a RestletRepresentation. -
Uses of Representation in org.restlet.ext.jaxrs.internal.util
Subclasses of Representation in org.restlet.ext.jaxrs.internal.util Modifier and Type Class Description classJaxRsOutputRepresentation<T>Deprecated.Will be removed in next minor release. -
Uses of Representation in org.restlet.ext.jaxrs.internal.wrappers.params
Fields in org.restlet.ext.jaxrs.internal.wrappers.params with type parameters of type Representation Modifier and Type Field Description (package private) java.lang.reflect.Constructor<? extends Representation>ReprEntityGetter. constrDeprecated.Methods in org.restlet.ext.jaxrs.internal.wrappers.params that return Representation Modifier and Type Method Description (package private) RepresentationReprEntityGetter.ClassReprEntityGetter. createInstance(Representation entity)(package private) abstract RepresentationReprEntityGetter. createInstance(Representation entity)Deprecated.(package private) RepresentationReprEntityGetter.ReprClassEntityGetter. createInstance(Representation entity)(package private) RepresentationReprEntityGetter.ReprOnlyEntityGetter. createInstance(Representation entity)Methods in org.restlet.ext.jaxrs.internal.wrappers.params that return types with arguments of type Representation Modifier and Type Method Description private java.lang.Class<? extends Representation>ReprEntityGetter. getReprClass()Deprecated.Methods in org.restlet.ext.jaxrs.internal.wrappers.params with parameters of type Representation Modifier and Type Method Description (package private) RepresentationReprEntityGetter.ClassReprEntityGetter. createInstance(Representation entity)(package private) abstract RepresentationReprEntityGetter. createInstance(Representation entity)Deprecated.(package private) RepresentationReprEntityGetter.ReprClassEntityGetter. createInstance(Representation entity)(package private) RepresentationReprEntityGetter.ReprOnlyEntityGetter. createInstance(Representation entity) -
Uses of Representation in org.restlet.ext.jetty.internal
Methods in org.restlet.ext.jetty.internal that return Representation Modifier and Type Method Description RepresentationJettyClientCall. getResponseEntity(Response response)Returns the response entity if available. -
Uses of Representation in org.restlet.ext.json
Subclasses of Representation in org.restlet.ext.json Modifier and Type Class Description classJsonpRepresentationWrappers that adds a JSONP header and footer to JSON representations.classJsonRepresentationRepresentation based on a JSON document.Fields in org.restlet.ext.json declared as Representation Modifier and Type Field Description private RepresentationJsonRepresentation. jsonRepresentationThe wrapped JSON representation.private RepresentationJsonpRepresentation. wrappedRepresentationThe wrapped JSON representation.Methods in org.restlet.ext.json that return Representation Modifier and Type Method Description RepresentationJsonConverter. toRepresentation(java.lang.Object source, Variant target, Resource resource)Methods in org.restlet.ext.json with parameters of type Representation Modifier and Type Method Description <T> floatJsonConverter. score(Representation source, java.lang.Class<T> target, Resource resource)<T> TJsonConverter. toObject(Representation source, java.lang.Class<T> target, Resource resource)Constructors in org.restlet.ext.json with parameters of type Representation Constructor Description JsonpRepresentation(java.lang.String callback, Status status, Representation wrappedRepresentation)Constructor.JsonRepresentation(Representation jsonRepresentation)Constructor. -
Uses of Representation in org.restlet.ext.nio.internal.way
Methods in org.restlet.ext.nio.internal.way that return Representation Modifier and Type Method Description protected RepresentationInboundWay. createEntity(Series<Header> headers)Deprecated.Returns the message entity if available.Methods in org.restlet.ext.nio.internal.way with parameters of type Representation Modifier and Type Method Description protected voidOutboundWay. addEntityHeaders(Representation entity, Series<Header> headers)Deprecated.Adds the entity headers for the given response.protected booleanOutboundWay. shouldBeChunked(Representation entity)Deprecated.Indicates if the entity should be chunked because its length is unknown. -
Uses of Representation in org.restlet.ext.rdf
Subclasses of Representation in org.restlet.ext.rdf Modifier and Type Class Description classRdfRepresentationGeneric RDF representation.Fields in org.restlet.ext.rdf declared as Representation Modifier and Type Field Description private RepresentationRdfRepresentation. rdfRepresentationThe inner RDF representation.Methods in org.restlet.ext.rdf that return Representation Modifier and Type Method Description RepresentationGraph. getRdfN3Representation()Returns a representation in the RDF/n3 format.RepresentationGraph. getRdfNTriplesRepresentation()Returns a representation in the RDF/N-Triples format.RepresentationGraph. getRdfTurtleRepresentation()Returns a representation in the RDF/Turtle format.RepresentationGraph. getRdfXmlRepresentation()Returns a representation in the RDF/XML format.RepresentationRdfConverter. toRepresentation(java.lang.Object source, Variant target, Resource resource)Methods in org.restlet.ext.rdf with parameters of type Representation Modifier and Type Method Description <T> floatRdfConverter. score(Representation source, java.lang.Class<T> target, Resource resource)<T> TRdfConverter. toObject(Representation source, java.lang.Class<T> target, Resource resource)Constructors in org.restlet.ext.rdf with parameters of type Representation Constructor Description RdfRepresentation(Representation rdfRepresentation)Constructor that parsed a given RDF representation into a link set. -
Uses of Representation in org.restlet.ext.rdf.internal
Fields in org.restlet.ext.rdf.internal declared as Representation Modifier and Type Field Description private RepresentationRdfReader. rdfRepresentationThe representation to read.Methods in org.restlet.ext.rdf.internal that return Representation Modifier and Type Method Description RepresentationRdfReader. getRdfRepresentation()Returns the representation to read.Constructors in org.restlet.ext.rdf.internal with parameters of type Representation Constructor Description RdfReader(Representation rdfRepresentation, GraphHandler graphHandler)Constructor. -
Uses of Representation in org.restlet.ext.rdf.internal.n3
Constructors in org.restlet.ext.rdf.internal.n3 with parameters of type Representation Constructor Description RdfN3Reader(Representation rdfN3Representation, GraphHandler graphHandler)Constructor. -
Uses of Representation in org.restlet.ext.rdf.internal.ntriples
Constructors in org.restlet.ext.rdf.internal.ntriples with parameters of type Representation Constructor Description RdfNTriplesReader(Representation rdfRepresentation, GraphHandler graphHandler)Constructor. -
Uses of Representation in org.restlet.ext.rdf.internal.turtle
Constructors in org.restlet.ext.rdf.internal.turtle with parameters of type Representation Constructor Description RdfTurtleReader(Representation rdfN3Representation, GraphHandler graphHandler)Constructor. -
Uses of Representation in org.restlet.ext.rdf.internal.xml
Constructors in org.restlet.ext.rdf.internal.xml with parameters of type Representation Constructor Description ContentReader(Representation representation, GraphHandler graphHandler)Constructor.RdfXmlReader(Representation rdfRepresentation, GraphHandler graphHandler)Constructor. -
Uses of Representation in org.restlet.ext.velocity
Subclasses of Representation in org.restlet.ext.velocity Modifier and Type Class Description classTemplateRepresentationVelocity template representation.Fields in org.restlet.ext.velocity declared as Representation Modifier and Type Field Description private RepresentationRepresentationResourceLoader. defaultRepresentationThe default representation to load.Fields in org.restlet.ext.velocity with type parameters of type Representation Modifier and Type Field Description private static java.util.Map<java.lang.String,Representation>RepresentationResourceLoader. storeThe cache of template representations.Methods in org.restlet.ext.velocity that return Representation Modifier and Type Method Description RepresentationVelocityConverter. toRepresentation(java.lang.Object source, Variant target, Resource resource)Methods in org.restlet.ext.velocity that return types with arguments of type Representation Modifier and Type Method Description static java.util.Map<java.lang.String,Representation>RepresentationResourceLoader. getStore()Returns the cache of template representations.Methods in org.restlet.ext.velocity with parameters of type Representation Modifier and Type Method Description <T> floatVelocityConverter. score(Representation source, java.lang.Class<T> target, Resource resource)<T> TVelocityConverter. toObject(Representation source, java.lang.Class<T> target, Resource resource)Constructors in org.restlet.ext.velocity with parameters of type Representation Constructor Description RepresentationResourceLoader(Representation defaultRepresentation)Constructor.TemplateRepresentation(Representation templateRepresentation, java.util.Map<java.lang.String,java.lang.Object> dataModel, MediaType mediaType)Constructor based on a Velocity 'encoded' representation.TemplateRepresentation(Representation templateRepresentation, MediaType mediaType)Constructor based on a Velocity 'encoded' representation. -
Uses of Representation in org.restlet.ext.wadl
Subclasses of Representation in org.restlet.ext.wadl Modifier and Type Class Description classWadlRepresentationDeprecated.Will be removed in next major release.Methods in org.restlet.ext.wadl that return Representation Modifier and Type Method Description protected RepresentationWadlApplication. createHtmlRepresentation(ApplicationInfo applicationInfo)Deprecated.Creates a new HTML representation for a givenApplicationInfoinstance describing an application.protected RepresentationWadlServerResource. createHtmlRepresentation(ApplicationInfo applicationInfo)Deprecated.Creates a new HTML representation for a givenApplicationInfoinstance describing an application.protected RepresentationWadlApplication. createWadlRepresentation(ApplicationInfo applicationInfo)Deprecated.Creates a new WADL representation for a givenApplicationInfoinstance describing an application.protected RepresentationWadlServerResource. createWadlRepresentation(ApplicationInfo applicationInfo)Deprecated.Creates a new WADL representation for a givenApplicationInfoinstance describing an application.protected RepresentationWadlServerResource. describe()Deprecated.Describes the resource as a standalone WADL document.protected RepresentationWadlServerResource. describe(Variant variant)Deprecated.Describes the resource as a WADL document for the given variant.RepresentationWadlRepresentation. getHtmlRepresentation()Deprecated.Returns an HTML representation.RepresentationWadlServerResource. options()Deprecated.RepresentationWadlConverter. toRepresentation(java.lang.Object source, Variant target, Resource resource)Deprecated.protected RepresentationWadlApplication. wadlRepresent(Variant variant, Request request, Response response)Deprecated.Represents the resource as a WADL description for the given variant.protected RepresentationWadlApplication. wadlRepresent(Request request, Response response)Deprecated.Represents the resource as a WADL description.Methods in org.restlet.ext.wadl with parameters of type Representation Modifier and Type Method Description WadlApplicationWadlComponent. attach(Representation wadl)Deprecated.Attaches an application created from a WADL description document to the component.<T> floatWadlConverter. score(Representation source, java.lang.Class<T> target, Resource resource)Deprecated.<T> TWadlConverter. toObject(Representation source, java.lang.Class<T> target, Resource resource)Deprecated.Constructors in org.restlet.ext.wadl with parameters of type Representation Constructor Description WadlApplication(Context context, Representation wadl)Deprecated.Creates an application described using a WADL document.WadlApplication(Representation wadl)Deprecated.Creates an application described using a WADL document.WadlComponent(Representation wadl)Deprecated.Constructor based on a given WADL description document.WadlRepresentation(Representation xmlRepresentation)Deprecated.Constructor. -
Uses of Representation in org.restlet.ext.xml
Subclasses of Representation in org.restlet.ext.xml Modifier and Type Class Description classDomRepresentationXML representation based on a DOM document.classSaxRepresentationXML representation for SAX events processing.classTransformRepresentationRepresentation able to apply an XSLT transformation.classXmlRepresentationRepresentation based on an XML document.Fields in org.restlet.ext.xml declared as Representation Modifier and Type Field Description private RepresentationTransformRepresentation. sourceRepresentationThe source representation to transform.private RepresentationTransformer. transformSheetThe XSLT transform sheet to apply to message entities.private RepresentationTransformRepresentation. transformSheetThe XSLT transform sheet to apply to message entities.private RepresentationDomRepresentation. xmlRepresentationThe source XML representation.private RepresentationSaxRepresentation. xmlRepresentationThe source XML representation.Methods in org.restlet.ext.xml that return Representation Modifier and Type Method Description RepresentationTransformRepresentation. getSourceRepresentation()Returns the source representation to transform.RepresentationTransformer. getTransformSheet()Returns the XSLT transform sheet to apply to message entities.RepresentationTransformRepresentation. getTransformSheet()Returns the XSLT transform sheet to apply to the source representation.RepresentationXmlConverter. toRepresentation(java.lang.Object source, Variant target, Resource resource)RepresentationTransformer. transform(Representation source)Transforms a source XML representation by applying an XSLT transform sheet to it.Methods in org.restlet.ext.xml with parameters of type Representation Modifier and Type Method Description protected booleanTransformer. canTransform(Representation representation)Indicates if the filter can transform the given message entity.static javax.xml.transform.sax.SAXSourceXmlRepresentation. getSaxSource(Representation xmlRepresentation)Returns a SAX source.private static javax.xml.validation.SchemaXmlRepresentation. getSchema(Representation schemaRepresentation)Returns the wrapped schema.private static java.lang.StringXmlRepresentation. getSchemaLanguageUri(Representation schemaRepresentation)Returns the schema URI for the current schema media type.<T> floatXmlConverter. score(Representation source, java.lang.Class<T> target, Resource resource)voidXmlRepresentation. setSchema(Representation schemaRepresentation)Set a schema representation to be compiled and used when parsing and validating this type of XML representations.voidTransformRepresentation. setSourceRepresentation(Representation source)Sets the source representation to transform.voidTransformer. setTransformSheet(Representation transformSheet)Sets the XSLT transform sheet to apply to message entities.voidTransformRepresentation. setTransformSheet(Representation transformSheet)Sets the XSLT transform sheet to apply to message entities.<T> TXmlConverter. toObject(Representation source, java.lang.Class<T> target, Resource resource)static javax.xml.transform.sax.SAXSourceTransformRepresentation. toSaxSource(Representation representation)Wraps a source representation into aSAXSource.RepresentationTransformer. transform(Representation source)Transforms a source XML representation by applying an XSLT transform sheet to it.voidXmlRepresentation. validate(Representation schemaRepresentation)Validates the XML representation against a given schema.voidXmlRepresentation. validate(Representation schemaRepresentation, javax.xml.transform.Result result)Validates the XML representation against a given schema.Constructors in org.restlet.ext.xml with parameters of type Representation Constructor Description DomRepresentation(Representation xmlRepresentation)Constructor.SaxRepresentation(Representation xmlRepresentation)Constructor.Transformer(int mode, Representation transformSheet)Constructor.TransformRepresentation(javax.xml.transform.URIResolver uriResolver, Representation source, javax.xml.transform.Templates templates)Constructor.TransformRepresentation(javax.xml.transform.URIResolver uriResolver, Representation source, Representation transformSheet)Constructor.TransformRepresentation(javax.xml.transform.URIResolver uriResolver, Representation source, Representation transformSheet, javax.xml.transform.Templates templates)Constructor.TransformRepresentation(Context context, Representation source, Representation transformSheet)Constructor.TransformRepresentation(Representation source, Representation transformSheet)Default constructor. -
Uses of Representation in org.restlet.representation
Subclasses of Representation in org.restlet.representation Modifier and Type Class Description classAppendableRepresentationRepresents an appendable sequence of characters.classBufferingRepresentationRepresentation capable of buffering the wrapped representation.classByteArrayRepresentationRepresentation wrapping a byte array.classChannelRepresentationRepresentation based on a NIO byte channel.classCharacterRepresentationRepresentation based on a BIO character stream.classDigesterRepresentationRepresentation capable of computing a digest.classEmptyRepresentationEmpty representation with no content.classFileRepresentationRepresentation based on a static file.classInputRepresentationTransient representation based on a BIO input stream.classObjectRepresentation<T extends java.io.Serializable>Representation based on a serializable Java object.
It supports binary representations of JavaBeans using theObjectInputStreamandObjectOutputStreamclasses.classOutputRepresentationRepresentation based on a BIO output stream.classReadableRepresentationTransient representation based on a readable NIO byte channel.classReaderRepresentationTransient representation based on a BIO characters reader.classStreamRepresentationRepresentation based on a BIO stream.classStringRepresentationRepresents an Unicode string that can be converted to any character set supported by Java.classWritableRepresentationRepresentation based on a writable NIO byte channel.classWriterRepresentationRepresentation based on a BIO characters writer.Constructors in org.restlet.representation with parameters of type Representation Constructor Description BufferingRepresentation(Representation bufferedRepresentation)Constructor.DigesterRepresentation(Representation wrappedRepresentation)Constructor.
By default, the instance relies on theDigest.ALGORITHM_MD5digest algorithm.DigesterRepresentation(Representation wrappedRepresentation, java.lang.String algorithm)Constructor.ObjectRepresentation(Representation serializedRepresentation)Constructor reading the object from a serialized representation.ObjectRepresentation(Representation serializedRepresentation, java.lang.ClassLoader classLoader)Constructor reading the object from a serialized representation.ObjectRepresentation(Representation serializedRepresentation, java.lang.ClassLoader classLoader, boolean variantObjectBinarySupported, boolean variantObjectXmlSupported)Constructor reading the object from a serialized representation. -
Uses of Representation in org.restlet.resource
Methods in org.restlet.resource that return Representation Modifier and Type Method Description RepresentationClientResource. delete()Deletes the target resource and all its representations.RepresentationClientResource. delete(MediaType mediaType)Deletes the target resource and all its representations.protected RepresentationServerResource. delete()Deletes the resource and all its representations.protected RepresentationServerResource. delete(Variant variant)Deletes the resource and all its representations.protected RepresentationServerResource. describeVariants()Describes the available variants to help client-side content negotiation.protected RepresentationServerResource. doConditionalHandle()Handles a call by first verifying the optional request conditions and continue the processing if possible.protected RepresentationServerResource. doHandle()Effectively handles a call without content negotiation of the response entity.private RepresentationServerResource. doHandle(Method method, Form query, Representation entity)Handles a call and checks the request's method and entity.protected RepresentationServerResource. doHandle(MethodAnnotationInfo annotationInfo, Variant variant)Effectively handles a call with content negotiation of the response entity using an annotated method.protected RepresentationServerResource. doHandle(Variant variant)Effectively handles a call with content negotiation of the response entity.protected RepresentationServerResource. doNegotiatedHandle()Effectively handles a call with content negotiation of the response entity.RepresentationClientResource. get()Represents the resource using content negotiation to select the best variant based on the client preferences.RepresentationClientResource. get(MediaType mediaType)Represents the resource using a given media type.protected RepresentationServerResource. get()Returns a full representation.protected RepresentationServerResource. get(Variant variant)Returns a full representation for a given variant.RepresentationDirectory. getIndexRepresentation(Variant variant, ReferenceList indexContent)Returns an actual index representation for a given variant.RepresentationResource. getRequestEntity()Returns the request entity representation.RepresentationResource. getResponseEntity()Returns the response entity representation.RepresentationClientResource. handle()Handles the call by invoking the next handler.protected RepresentationClientResource. handle(Method method)Handles the call by cloning the prototype request, setting the method and entity.protected RepresentationClientResource. handle(Method method, MediaType mediaType)Handles the call by cloning the prototype request, setting the method and entity.protected RepresentationClientResource. handle(Method method, Representation entity)Handles the call by cloning the prototype request, setting the method and entity.protected RepresentationClientResource. handle(Method method, Representation entity, ClientInfo clientInfo)Handles the call by cloning the prototype request, setting the method and entity.protected RepresentationClientResource. handle(Method method, Representation entity, MediaType mediaType)Handles the call by cloning the prototype request, setting the method and entity.abstract RepresentationResource. handle()Handles the call composed of the current context, request and response.RepresentationServerResource. handle()Handles any call to this resource.RepresentationClientResource. handleInbound(Response response)Handles the inbound call.RepresentationClientResource. head()Represents the resource using content negotiation to select the best variant based on the client preferences.RepresentationClientResource. head(MediaType mediaType)Represents the resource using a given media type.protected RepresentationServerResource. head()Returns a representation whose metadata will be returned to the client.protected RepresentationServerResource. head(Variant variant)Returns a representation whose metadata will be returned to the client.RepresentationClientResource. options()Describes the resource using content negotiation to select the best variant based on the client preferences.RepresentationClientResource. options(MediaType mediaType)Describes the resource using a given media type.protected RepresentationServerResource. options()Indicates the communication options available for this resource.protected RepresentationServerResource. options(Variant variant)Indicates the communication options available for this resource.RepresentationClientResource. patch(java.lang.Object entity)Patches a resource with the given object as delta state.RepresentationClientResource. patch(java.lang.Object entity, MediaType mediaType)Patches a resource with the given object as delta state.RepresentationClientResource. patch(Representation entity)Patches a resource with the given representation as delta state.protected RepresentationServerResource. patch(Representation entity)Apply a patch entity to the current representation of the resource retrieved by callingServerResource.get().protected RepresentationServerResource. patch(Representation entity, Variant variant)Apply a patch entity to the current representation of the resource retrieved by callingServerResource.get().RepresentationClientResource. post(java.lang.Object entity)Posts an object entity.RepresentationClientResource. post(java.lang.Object entity, MediaType mediaType)Posts an object entity.RepresentationClientResource. post(Representation entity)Posts a representation.protected RepresentationServerResource. post(Representation entity)Posts a representation to the resource at the target URI reference.protected RepresentationServerResource. post(Representation entity, Variant variant)Posts a representation to the resource at the target URI reference.RepresentationClientResource. put(java.lang.Object entity)Puts an object entity.RepresentationClientResource. put(java.lang.Object entity, MediaType mediaType)Puts an object entity.RepresentationClientResource. put(Representation entity)Creates or updates a resource with the given representation as new state to be stored.protected RepresentationServerResource. put(Representation entity)Creates or updates a resource with the given representation as new state to be stored.protected RepresentationServerResource. put(Representation representation, Variant variant)Creates or updates a resource with the given representation as new state to be stored.RepresentationResource. toRepresentation(java.lang.Object source)Converts an object into a representation based on the default converter service variant.RepresentationResource. toRepresentation(java.lang.Object source, MediaType target)Converts an object into a representation based on a given media type.RepresentationResource. toRepresentation(java.lang.Object source, Variant target)Converts an object into a representation based on client preferences.Methods in org.restlet.resource with parameters of type Representation Modifier and Type Method Description private RepresentationServerResource. doHandle(Method method, Form query, Representation entity)Handles a call and checks the request's method and entity.protected MethodAnnotationInfoServerResource. getAnnotation(Method method, Form query, Representation entity)Returns the first annotation descriptor matching the given method.protected RepresentationClientResource. handle(Method method, Representation entity)Handles the call by cloning the prototype request, setting the method and entity.protected RepresentationClientResource. handle(Method method, Representation entity, ClientInfo clientInfo)Handles the call by cloning the prototype request, setting the method and entity.protected RepresentationClientResource. handle(Method method, Representation entity, MediaType mediaType)Handles the call by cloning the prototype request, setting the method and entity.RepresentationClientResource. patch(Representation entity)Patches a resource with the given representation as delta state.protected RepresentationServerResource. patch(Representation entity)Apply a patch entity to the current representation of the resource retrieved by callingServerResource.get().protected RepresentationServerResource. patch(Representation entity, Variant variant)Apply a patch entity to the current representation of the resource retrieved by callingServerResource.get().RepresentationClientResource. post(Representation entity)Posts a representation.protected RepresentationServerResource. post(Representation entity)Posts a representation to the resource at the target URI reference.protected RepresentationServerResource. post(Representation entity, Variant variant)Posts a representation to the resource at the target URI reference.RepresentationClientResource. put(Representation entity)Creates or updates a resource with the given representation as new state to be stored.protected RepresentationServerResource. put(Representation entity)Creates or updates a resource with the given representation as new state to be stored.protected RepresentationServerResource. put(Representation representation, Variant variant)Creates or updates a resource with the given representation as new state to be stored.<T> TResource. toObject(Representation source, java.lang.Class<T> target)Converts a representation into a Java object. -
Uses of Representation in org.restlet.routing
Methods in org.restlet.routing that return Representation Modifier and Type Method Description protected RepresentationRedirector. rewrite(Representation initialEntity)Optionally rewrites the response entity returned in theRedirector.MODE_SERVER_INBOUNDandRedirector.MODE_SERVER_OUTBOUNDmodes.Methods in org.restlet.routing with parameters of type Representation Modifier and Type Method Description protected RepresentationRedirector. rewrite(Representation initialEntity)Optionally rewrites the response entity returned in theRedirector.MODE_SERVER_INBOUNDandRedirector.MODE_SERVER_OUTBOUNDmodes. -
Uses of Representation in org.restlet.service
Methods in org.restlet.service that return Representation Modifier and Type Method Description RepresentationConverterService. applyPatch(Representation initial, Representation patch)Applies a patch representation to an initial representation in order to obtain a modified one.RepresentationConverterService. createPatch(Representation initial, Representation modified)Creates a patch representation by calculating a diff between initial and modified representations.RepresentationStatusService. getRepresentation(Status status, Request request, Response response)Deprecated.RepresentationConverterService. revertPatch(Representation modified, Representation patch)Reverts a patch representation from a modified representation in order to obtain the initial one.RepresentationConverterService. toRepresentation(java.lang.Object source)Converts a regular Java object into a Representation.RepresentationConverterService. toRepresentation(java.lang.Object source, MediaType target)Converts a regular Java object into a Representation.RepresentationConverterService. toRepresentation(java.lang.Object source, Variant target)Converts a regular Java object into a Representation.RepresentationConverterService. toRepresentation(java.lang.Object source, Variant target, Resource resource)Converts a regular Java object into a Representation.RepresentationStatusService. toRepresentation(Status status, Request request, Response response)Returns a representation for the given status.RepresentationStatusService. toRepresentation(Status status, Resource resource)Returns a representation for the given status.
In order to customize the default representation, this method can be overridden.Methods in org.restlet.service with parameters of type Representation Modifier and Type Method Description voidConnectorService. afterSend(Representation entity)Call-back method invoked by the client or server connectors just after sending the response to the target component.RepresentationConverterService. applyPatch(Representation initial, Representation patch)Applies a patch representation to an initial representation in order to obtain a modified one.voidConnectorService. beforeSend(Representation entity)Call-back method invoked by the client or server connectors just before sending the response to the target component.booleanEncoderService. canEncode(Representation representation)Indicates if a representation can be encoded.RepresentationConverterService. createPatch(Representation initial, Representation modified)Creates a patch representation by calculating a diff between initial and modified representations.RepresentationConverterService. revertPatch(Representation modified, Representation patch)Reverts a patch representation from a modified representation in order to obtain the initial one.java.lang.ObjectConverterService. toObject(Representation source)Converts a Representation into a regular Java object.<T> TConverterService. toObject(Representation source, java.lang.Class<T> target, Resource resource)Converts a Representation into a regular Java object. -
Uses of Representation in org.restlet.util
Subclasses of Representation in org.restlet.util Modifier and Type Class Description classWrapperRepresentationRepresentation wrapper.Fields in org.restlet.util declared as Representation Modifier and Type Field Description private RepresentationWrapperRepresentation. wrappedRepresentationThe wrapped representation.Methods in org.restlet.util that return Representation Modifier and Type Method Description RepresentationWrapperRequest. getEntity()Returns the entity representation.RepresentationWrapperResponse. getEntity()Returns the entity representation.RepresentationWrapperRepresentation. getWrappedRepresentation()Returns the wrapped representation.Methods in org.restlet.util with parameters of type Representation Modifier and Type Method Description voidWrapperRequest. setEntity(Representation entity)Sets the entity representation.voidWrapperResponse. setEntity(Representation entity)Sets the entity representation.Constructors in org.restlet.util with parameters of type Representation Constructor 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.
-