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.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
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.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.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 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.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. 
 -