congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
StringDecoder.textPlainOnly
Code IndexAdd Tabnine to your IDE (free)

How to use
textPlainOnly
method
in
org.springframework.core.codec.StringDecoder

Best Java code snippets using org.springframework.core.codec.StringDecoder.textPlainOnly (Showing top 14 results out of 315)

origin: spring-projects/spring-framework

/**
 * Create a {@code StringDecoder} for {@code "text/plain"}.
 */
public static StringDecoder textPlainOnly() {
  return textPlainOnly(DEFAULT_DELIMITERS, true);
}
origin: spring-projects/spring-framework

/**
 * Create a {@code StringDecoder} for {@code "text/plain"}.
 * @param ignored ignored
 * @deprecated as of Spring 5.0.4, in favor of {@link #textPlainOnly()} or
 * {@link #textPlainOnly(List, boolean)}
 */
@Deprecated
public static StringDecoder textPlainOnly(boolean ignored) {
  return textPlainOnly();
}
origin: org.springframework/spring-core

/**
 * Create a {@code StringDecoder} for {@code "text/plain"}.
 */
public static StringDecoder textPlainOnly() {
  return textPlainOnly(DEFAULT_DELIMITERS, true);
}
origin: org.springframework/spring-core

/**
 * Create a {@code StringDecoder} for {@code "text/plain"}.
 * @param ignored ignored
 * @deprecated as of Spring 5.0.4, in favor of {@link #textPlainOnly()} or
 * {@link #textPlainOnly(List, boolean)}
 */
@Deprecated
public static StringDecoder textPlainOnly(boolean ignored) {
  return textPlainOnly();
}
origin: spring-projects/spring-framework

/**
 * Return readers that support specific types.
 */
final List<HttpMessageReader<?>> getTypedReaders() {
  if (!this.registerDefaults) {
    return Collections.emptyList();
  }
  List<HttpMessageReader<?>> readers = new ArrayList<>();
  readers.add(new DecoderHttpMessageReader<>(new ByteArrayDecoder()));
  readers.add(new DecoderHttpMessageReader<>(new ByteBufferDecoder()));
  readers.add(new DecoderHttpMessageReader<>(new DataBufferDecoder()));
  readers.add(new DecoderHttpMessageReader<>(new ResourceDecoder()));
  readers.add(new DecoderHttpMessageReader<>(StringDecoder.textPlainOnly()));
  if (protobufPresent) {
    Decoder<?> decoder = this.protobufDecoder != null ? this.protobufDecoder : new ProtobufDecoder();
    readers.add(new DecoderHttpMessageReader<>(decoder));
  }
  FormHttpMessageReader formReader = new FormHttpMessageReader();
  formReader.setEnableLoggingRequestDetails(this.enableLoggingRequestDetails);
  readers.add(formReader);
  extendTypedReaders(readers);
  return readers;
}
origin: org.springframework/spring-web

/**
 * Return readers that support specific types.
 */
final List<HttpMessageReader<?>> getTypedReaders() {
  if (!this.registerDefaults) {
    return Collections.emptyList();
  }
  List<HttpMessageReader<?>> readers = new ArrayList<>();
  readers.add(new DecoderHttpMessageReader<>(new ByteArrayDecoder()));
  readers.add(new DecoderHttpMessageReader<>(new ByteBufferDecoder()));
  readers.add(new DecoderHttpMessageReader<>(new DataBufferDecoder()));
  readers.add(new DecoderHttpMessageReader<>(new ResourceDecoder()));
  readers.add(new DecoderHttpMessageReader<>(StringDecoder.textPlainOnly()));
  if (protobufPresent) {
    Decoder<?> decoder = this.protobufDecoder != null ? this.protobufDecoder : new ProtobufDecoder();
    readers.add(new DecoderHttpMessageReader<>(decoder));
  }
  FormHttpMessageReader formReader = new FormHttpMessageReader();
  formReader.setEnableLoggingRequestDetails(this.enableLoggingRequestDetails);
  readers.add(formReader);
  extendTypedReaders(readers);
  return readers;
}
origin: spring-projects/spring-framework

  @Override
  protected void configureHttpMessageCodecs(ServerCodecConfigurer configurer) {
    configurer.registerDefaults(false);
    configurer.customCodecs().decoder(StringDecoder.textPlainOnly());
    configurer.customCodecs().decoder(new Jaxb2XmlDecoder());
    configurer.customCodecs().encoder(CharSequenceEncoder.textPlainOnly());
    configurer.customCodecs().encoder(new Jaxb2XmlEncoder());
  }
}
origin: spring-projects/spring-framework

assertEquals(MediaType.APPLICATION_JSON_UTF8, part.headers().getContentType());
String value = StringDecoder.textPlainOnly(false).decodeToMono(part.content(),
    ResolvableType.forClass(String.class), MediaType.TEXT_PLAIN,
    Collections.emptyMap()).block(Duration.ZERO);
assertEquals("publisher", part.name());
value = StringDecoder.textPlainOnly(false).decodeToMono(part.content(),
    ResolvableType.forClass(String.class), MediaType.TEXT_PLAIN,
    Collections.emptyMap()).block(Duration.ZERO);
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-core

/**
 * Create a {@code StringDecoder} for {@code "text/plain"}.
 */
public static StringDecoder textPlainOnly() {
  return textPlainOnly(DEFAULT_DELIMITERS, true);
}
origin: apache/servicemix-bundles

/**
 * Create a {@code StringDecoder} for {@code "text/plain"}.
 */
public static StringDecoder textPlainOnly() {
  return textPlainOnly(DEFAULT_DELIMITERS, true);
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-core

/**
 * Create a {@code StringDecoder} for {@code "text/plain"}.
 * @param ignored ignored
 * @deprecated as of Spring 5.0.4, in favor of {@link #textPlainOnly()} or
 * {@link #textPlainOnly(List, boolean)}.
 */
@Deprecated
public static StringDecoder textPlainOnly(boolean ignored) {
  return textPlainOnly();
}
origin: apache/servicemix-bundles

/**
 * Create a {@code StringDecoder} for {@code "text/plain"}.
 * @param ignored ignored
 * @deprecated as of Spring 5.0.4, in favor of {@link #textPlainOnly()} or
 * {@link #textPlainOnly(List, boolean)}
 */
@Deprecated
public static StringDecoder textPlainOnly(boolean ignored) {
  return textPlainOnly();
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-web

/**
 * Return readers that support specific types.
 */
final List<HttpMessageReader<?>> getTypedReaders() {
  if (!this.registerDefaults) {
    return Collections.emptyList();
  }
  List<HttpMessageReader<?>> readers = new ArrayList<>();
  readers.add(new DecoderHttpMessageReader<>(new ByteArrayDecoder()));
  readers.add(new DecoderHttpMessageReader<>(new ByteBufferDecoder()));
  readers.add(new DecoderHttpMessageReader<>(new DataBufferDecoder()));
  readers.add(new DecoderHttpMessageReader<>(new ResourceDecoder()));
  readers.add(new DecoderHttpMessageReader<>(StringDecoder.textPlainOnly()));
  if (protobufPresent) {
    Decoder<?> decoder = this.protobufDecoder != null ? this.protobufDecoder : new ProtobufDecoder();
    readers.add(new DecoderHttpMessageReader<>(decoder));
  }
  FormHttpMessageReader formReader = new FormHttpMessageReader();
  formReader.setEnableLoggingRequestDetails(this.enableLoggingRequestDetails);
  readers.add(formReader);
  extendTypedReaders(readers);
  return readers;
}
origin: org.springframework.fu/spring-fu-autoconfigure-adapter

  @Override
  protected void register(GenericApplicationContext context, CodecConfigurer configurer) {
    configurer.customCodecs().encoder(textPlainOnly ? CharSequenceEncoder.textPlainOnly() : CharSequenceEncoder.allMimeTypes());
    configurer.customCodecs().decoder(textPlainOnly ? StringDecoder.textPlainOnly() : StringDecoder.allMimeTypes());
  }
}
org.springframework.core.codecStringDecodertextPlainOnly

Javadoc

Create a StringDecoder for "text/plain".

Popular methods of StringDecoder

  • allMimeTypes
    Create a StringDecoder that supports all MIME types.
  • <init>
  • decode
  • decodeToMono
  • getCharset
  • getDelimiterBytes
  • indexOf
    Find the given delimiter in the given data buffer.
  • isEndFrame
    Check whether the given buffer is #END_FRAME.
  • splitOnDelimiter
    Split the given data buffer on delimiter boundaries. The returned Flux contains an #END_FRAME buffer
  • canDecode

Popular in Java

  • Making http post requests using okhttp
  • setContentView (Activity)
  • onRequestPermissionsResult (Fragment)
  • requestLocationUpdates (LocationManager)
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • JFileChooser (javax.swing)
  • 21 Best Atom Packages for 2021
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now