Uses of Class
org.restlet.data.CharacterSet
-
Packages that use CharacterSet Package Description org.restlet.data Information exchanged by components.org.restlet.engine.application Supports Restlet applications.org.restlet.engine.header Supports HTTP header parsing and formatting.org.restlet.engine.io Supports input and output work.org.restlet.engine.util General utilities.org.restlet.ext.html.internal org.restlet.ext.jaxrs.internal.provider org.restlet.ext.jaxrs.internal.util org.restlet.ext.jaxrs.internal.wrappers.provider org.restlet.ext.xml Support for XML and XSLT representations.org.restlet.representation Common representation data elements.org.restlet.service Services used by applications and components.org.restlet.util Various utility classes. -
-
Uses of CharacterSet in org.restlet.data
Fields in org.restlet.data declared as CharacterSet Modifier and Type Field Description static CharacterSetCharacterSet. ALLAll character sets acceptable.static CharacterSetCharacterSet. DEFAULTThe default character set of the JVM.static CharacterSetCharacterSet. ISO_8859_1The ISO/IEC 8859-1 (Latin 1) character set.static CharacterSetCharacterSet. ISO_8859_10The ISO/IEC 8859-10 (Latin 6) character set.static CharacterSetCharacterSet. ISO_8859_2The ISO/IEC 8859-2 (Latin 2) character set.static CharacterSetCharacterSet. ISO_8859_3The ISO/IEC 8859-3 (Latin 3) character set.static CharacterSetCharacterSet. ISO_8859_4The ISO/IEC 8859-4 (Latin 4) character set.static CharacterSetCharacterSet. ISO_8859_5The ISO/IEC 8859-5 (Cyrillic) character set.static CharacterSetCharacterSet. ISO_8859_6The ISO/IEC 8859-6 (Arabic) character set.static CharacterSetCharacterSet. ISO_8859_7The ISO/IEC 8859-7 (Greek) character set.static CharacterSetCharacterSet. ISO_8859_8The ISO/IEC 8859-8 (Hebrew) character set.static CharacterSetCharacterSet. ISO_8859_9The ISO/IEC 8859-9 (Latin 5) character set.static CharacterSetCharacterSet. MACINTOSHThe Macintosh ("Mac OS Roman") character set.static CharacterSetCharacterSet. US_ASCIIThe US-ASCII character set.static CharacterSetCharacterSet. UTF_16The UTF-16 character set.static CharacterSetCharacterSet. UTF_8The UTF-8 character set.static CharacterSetCharacterSet. WINDOWS_1252The Windows-1252 ('ANSI') character set.Fields in org.restlet.data with type parameters of type CharacterSet Modifier and Type Field Description private java.util.List<Preference<CharacterSet>>ClientInfo. acceptedCharacterSetsThe character set preferences.Methods in org.restlet.data that return CharacterSet Modifier and Type Method Description CharacterSetClientInfo. getPreferredCharacterSet(java.util.List<CharacterSet> supported)Returns the preferred character set among a list of supported ones, based on the client preferences.static CharacterSetCharacterSet. valueOf(java.lang.String name)Returns the character set associated to a name.Methods in org.restlet.data that return types with arguments of type CharacterSet Modifier and Type Method Description java.util.List<Preference<CharacterSet>>ClientInfo. getAcceptedCharacterSets()Returns the modifiable list of character set preferences.Methods in org.restlet.data with parameters of type CharacterSet Modifier and Type Method Description static java.lang.StringReference. decode(java.lang.String toDecode, CharacterSet characterSet)Decodes a given string using the standard URI encoding mechanism.java.lang.StringForm. encode(CharacterSet characterSet)URL encodes the form.java.lang.StringForm. encode(CharacterSet characterSet, char separator)URL encodes the form.voidParameter. encode(java.lang.Appendable buffer, CharacterSet characterSet)Encodes the parameter into the target buffer.java.lang.StringParameter. encode(CharacterSet characterSet)Encodes the parameter as a string.static java.lang.StringReference. encode(java.lang.String toEncode, boolean queryString, CharacterSet characterSet)Encodes a given string using the standard URI encoding mechanism and the UTF-8 character set.static java.lang.StringReference. encode(java.lang.String toEncode, CharacterSet characterSet)Encodes a given string using the standard URI encoding mechanism.FormReference. getMatrixAsForm(CharacterSet characterSet)Returns the optional matrix as a form submission.java.lang.StringForm. getMatrixString(CharacterSet characterSet)Formats the form as a query string.FormReference. getQueryAsForm(CharacterSet characterSet)Returns the optional query component as a form submission.java.lang.StringForm. getQueryString(CharacterSet characterSet)Formats the form as a query string.RepresentationForm. getWebRepresentation(CharacterSet characterSet)Returns the form as a Web representation (MediaType.APPLICATION_WWW_FORM).Method parameters in org.restlet.data with type arguments of type CharacterSet Modifier and Type Method Description CharacterSetClientInfo. getPreferredCharacterSet(java.util.List<CharacterSet> supported)Returns the preferred character set among a list of supported ones, based on the client preferences.voidClientInfo. setAcceptedCharacterSets(java.util.List<Preference<CharacterSet>> acceptedCharacterSets)Sets the character set preferences.Constructors in org.restlet.data with parameters of type CharacterSet Constructor Description Form(java.lang.String queryString, CharacterSet characterSet)Constructor.Form(java.lang.String queryString, CharacterSet characterSet, boolean decode)Constructor.Form(java.lang.String parametersString, CharacterSet characterSet, char separator)Constructor.Form(java.lang.String parametersString, CharacterSet characterSet, char separator, boolean decode)Constructor. -
Uses of CharacterSet in org.restlet.engine.application
Fields in org.restlet.engine.application with type parameters of type CharacterSet Modifier and Type Field Description private java.util.List<Preference<CharacterSet>>FlexibleConneg. characterSetPrefsThe enriched list of character set preferences.Methods in org.restlet.engine.application that return CharacterSet Modifier and Type Method Description CharacterSetMetadataExtension. getCharacterSet()Returns the character set.Methods in org.restlet.engine.application that return types with arguments of type CharacterSet Modifier and Type Method Description protected java.util.List<Preference<CharacterSet>>FlexibleConneg. getCharacterSetPrefs()Returns the enriched list of character set preferences.protected java.util.List<Preference<CharacterSet>>StrictConneg. getCharacterSetPrefs()Returns the enriched list of character set preferences.Methods in org.restlet.engine.application with parameters of type CharacterSet Modifier and Type Method Description floatStrictConneg. scoreCharacterSet(CharacterSet characterSet)Scores a character set relatively to enriched client preferences. -
Uses of CharacterSet in org.restlet.engine.header
Fields in org.restlet.engine.header declared as CharacterSet Modifier and Type Field Description private CharacterSetContentType. characterSetThe content character set.Methods in org.restlet.engine.header that return CharacterSet Modifier and Type Method Description CharacterSetContentType. getCharacterSet()Returns the character set.static CharacterSetContentType. readCharacterSet(java.lang.String contentType)Parses the given content type header and returns the character set.Methods in org.restlet.engine.header with parameters of type CharacterSet Modifier and Type Method Description HeaderWriter<V>HeaderWriter. appendUriEncoded(java.lang.CharSequence source, CharacterSet characterSet)Formats and appends a source string as an URI encoded string.static java.lang.StringContentType. writeHeader(MediaType mediaType, CharacterSet characterSet)Writes the HTTP "Content-Type" header.Constructors in org.restlet.engine.header with parameters of type CharacterSet Constructor Description ContentType(MediaType mediaType, CharacterSet characterSet)Constructor. -
Uses of CharacterSet in org.restlet.engine.io
Methods in org.restlet.engine.io with parameters of type CharacterSet Modifier and Type Method Description static java.io.ReaderIoUtils. getReader(java.io.InputStream stream, CharacterSet characterSet)Returns a reader from an input stream and a character set.static java.io.InputStreamIoUtils. getStream(java.io.Reader reader, CharacterSet characterSet)Returns an input stream based on a given character reader.static java.io.OutputStreamIoUtils. getStream(java.io.Writer writer, CharacterSet characterSet)Returns an output stream based on a given writer.static java.io.WriterIoUtils. getWriter(java.io.OutputStream outputStream, CharacterSet characterSet)Returns a writer to the given output stream, using the given character set for encoding to bytes.static java.lang.StringIoUtils. toString(java.io.InputStream inputStream, CharacterSet characterSet)Converts an input stream to a string using the specified character set for decoding the input stream.Constructors in org.restlet.engine.io with parameters of type CharacterSet Constructor Description ReaderInputStream(java.io.Reader reader, CharacterSet characterSet)Constructor.WriterOutputStream(java.io.Writer writer, CharacterSet characterSet)Constructor. -
Uses of CharacterSet in org.restlet.engine.util
Fields in org.restlet.engine.util declared as CharacterSet Modifier and Type Field Description private CharacterSetFormReader. characterSetThe encoding to use, decoding is enabled, seeFormReader.decode.Methods in org.restlet.engine.util with parameters of type CharacterSet Modifier and Type Method Description static ParameterFormUtils. create(java.lang.CharSequence name, java.lang.CharSequence value, boolean decode, CharacterSet characterSet)Creates a parameter.static ParameterFormUtils. getFirstParameter(java.lang.String query, java.lang.String name, CharacterSet characterSet, char separator, boolean decode)Reads the first parameter with the given name.static java.lang.ObjectFormUtils. getParameter(java.lang.String query, java.lang.String name, CharacterSet characterSet, char separator, boolean decode)Reads the parameters with the given name.
If multiple values are found, a list is returned created.static voidFormUtils. getParameters(java.lang.String parametersString, java.util.Map<java.lang.String,java.lang.Object> parameters, CharacterSet characterSet, char separator, boolean decode)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, java.lang.String parametersString, CharacterSet characterSet, boolean decode, char separator)Parses a parameters string into a given form.Constructors in org.restlet.engine.util with parameters of type CharacterSet Constructor Description FormReader(java.lang.String parametersString, CharacterSet characterSet, char separator)Constructor.FormReader(java.lang.String parametersString, CharacterSet characterSet, char separator, boolean decode)Constructor. -
Uses of CharacterSet in org.restlet.ext.html.internal
Fields in org.restlet.ext.html.internal declared as CharacterSet Modifier and Type Field Description private CharacterSetFormReader. characterSetThe encoding to use, decoding is enabled, seeFormReader.decoding.Methods in org.restlet.ext.html.internal with parameters of type CharacterSet Modifier and Type Method Description static FormDataFormUtils. create(java.lang.CharSequence name, java.lang.CharSequence value, boolean decode, CharacterSet characterSet)Creates a form data.static voidFormUtils. getEntries(java.lang.String queryString, java.util.Map<java.lang.String,java.lang.Object> entries, CharacterSet characterSet, char separator)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(java.lang.String query, java.lang.String name, CharacterSet characterSet, char separator)Reads the entries with the given name.
If multiple values are found, a list is returned created.static FormDataFormUtils. getFirstEntry(java.lang.String query, java.lang.String name, CharacterSet characterSet, char separator)Reads the first entry with the given name.static voidFormUtils. parse(Series<FormData> entriesSeries, java.lang.String queryString, CharacterSet characterSet, boolean decode, char separator)Parses a entries string into a given form.Constructors in org.restlet.ext.html.internal with parameters of type CharacterSet Constructor Description FormReader(java.lang.String queryString, CharacterSet characterSet, char separator)Constructor. -
Uses of CharacterSet in org.restlet.ext.jaxrs.internal.provider
Methods in org.restlet.ext.jaxrs.internal.provider that return CharacterSet Modifier and Type Method Description private CharacterSetJsonProvider. getCurrentRequestEntityCharacterSet()Deprecated.private CharacterSetStringProvider. getCurrentRequestEntityCharacterSet()Deprecated. -
Uses of CharacterSet in org.restlet.ext.jaxrs.internal.util
Fields in org.restlet.ext.jaxrs.internal.util declared as CharacterSet Modifier and Type Field Description static CharacterSetUtil. JAX_RS_DEFAULT_CHARACTER_SETDeprecated.The default character set to be used, if no character set is given.Methods in org.restlet.ext.jaxrs.internal.util that return CharacterSet Modifier and Type Method Description static CharacterSetConverter. getRestletCharacterSet(javax.ws.rs.core.MediaType mediaType)Deprecated.Returns the Charset of the MediaType as Stringstatic CharacterSetUtil. getSupportedCharSet(javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.Object> httpResponseHeaders)Deprecated.Returns the character set of the http response headers.static CharacterSetUtil. getSupportedCharSet(CharacterSet characterSet)Deprecated.Returns the given character set, if it is supported on this system.private static CharacterSetUtil. logUnsupportedCharSet(java.lang.String charsetName)Deprecated.Logs a message that the wished character set is not supported and UTF-8 is used.Methods in org.restlet.ext.jaxrs.internal.util with parameters of type CharacterSet Modifier and Type Method Description static java.lang.StringUtil. getCharsetName(javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.Object> httpHeaders, CharacterSet defaultCs)Deprecated.Returns the character set as String of the given http headers (e.g.static CharacterSetUtil. getSupportedCharSet(CharacterSet characterSet)Deprecated.Returns the given character set, if it is supported on this system.static javax.ws.rs.core.MediaTypeConverter. toJaxRsMediaType(MediaType restletMediaType, CharacterSet restletCharacterSet)Deprecated.Convert a Restlet MediaType to a JAX-RS MediaType. -
Uses of CharacterSet in org.restlet.ext.jaxrs.internal.wrappers.provider
Methods in org.restlet.ext.jaxrs.internal.wrappers.provider with parameters of type CharacterSet Modifier and Type Method Description java.lang.ObjectMessageBodyReader. readFrom(java.lang.Class<?> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, MediaType mediaType, CharacterSet characterSet, javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String> httpHeaders, java.io.InputStream entityStream)Deprecated.java.lang.ObjectSingletonProvider. readFrom(java.lang.Class<?> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, MediaType mediaType, CharacterSet characterSet, javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String> httpHeaders, java.io.InputStream entityStream)Deprecated. -
Uses of CharacterSet in org.restlet.ext.xml
Fields in org.restlet.ext.xml declared as CharacterSet Modifier and Type Field Description private CharacterSetTransformer. resultCharacterSetThe character set of the result representation.Methods in org.restlet.ext.xml that return CharacterSet Modifier and Type Method Description CharacterSetTransformer. getResultCharacterSet()Returns the character set of the result representation.Methods in org.restlet.ext.xml with parameters of type CharacterSet Modifier and Type Method Description voidTransformer. setResultCharacterSet(CharacterSet resultCharacterSet)Sets the character set of the result representation. -
Uses of CharacterSet in org.restlet.representation
Fields in org.restlet.representation declared as CharacterSet Modifier and Type Field Description private CharacterSetVariant. characterSetThe character set or null if not applicable.Methods in org.restlet.representation that return CharacterSet Modifier and Type Method Description CharacterSetVariant. getCharacterSet()Returns the character set or null if not applicable.Methods in org.restlet.representation with parameters of type CharacterSet Modifier and Type Method Description voidStringRepresentation. setCharacterSet(CharacterSet characterSet)voidVariant. setCharacterSet(CharacterSet characterSet)Sets the character set or null if not applicable.
Note that when used with HTTP connectors, this property maps to the "Content-Type" header.Constructors in org.restlet.representation with parameters of type CharacterSet Constructor Description AppendableRepresentation(java.lang.CharSequence text, MediaType mediaType, Language language, CharacterSet characterSet)Constructor.StringRepresentation(java.lang.CharSequence text, MediaType mediaType, Language language, CharacterSet characterSet)Constructor. -
Uses of CharacterSet in org.restlet.service
Fields in org.restlet.service declared as CharacterSet Modifier and Type Field Description private CharacterSetMetadataService. defaultCharacterSetThe default character set for textual representations.Methods in org.restlet.service that return CharacterSet Modifier and Type Method Description CharacterSetMetadataService. getCharacterSet(java.lang.String extension)Returns the character set associated to this extension.CharacterSetMetadataService. getDefaultCharacterSet()Returns the default character set for textual representations.Methods in org.restlet.service that return types with arguments of type CharacterSet Modifier and Type Method Description java.util.List<CharacterSet>MetadataService. getAllCharacterSets(java.lang.String extension)Returns all the character sets associated to this extension.Methods in org.restlet.service with parameters of type CharacterSet Modifier and Type Method Description voidMetadataService. setDefaultCharacterSet(CharacterSet defaultCharacterSet)Sets the default character set for local representations. -
Uses of CharacterSet in org.restlet.util
Fields in org.restlet.util declared as CharacterSet Modifier and Type Field Description private CharacterSetCharacterReadingListener. characterSetThe character set of the associated representation.Methods in org.restlet.util that return CharacterSet Modifier and Type Method Description CharacterSetWrapperRepresentation. getCharacterSet()Methods in org.restlet.util with parameters of type CharacterSet Modifier and Type Method Description voidWrapperRepresentation. setCharacterSet(CharacterSet characterSet)
-