congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
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
  • setRequestProperty (URLConnection)
  • scheduleAtFixedRate (Timer)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • JLabel (javax.swing)
  • IsNull (org.hamcrest.core)
    Is the value null?
  • Top PhpStorm plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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