Tabnine Logo
AbstractSingleValueEncoder
Code IndexAdd Tabnine to your IDE (free)

How to use
AbstractSingleValueEncoder
in
org.springframework.core.codec

Best Java code snippets using org.springframework.core.codec.AbstractSingleValueEncoder (Showing top 12 results out of 315)

origin: spring-projects/spring-framework

@Override
public boolean canEncode(ResolvableType elementType, @Nullable MimeType mimeType) {
  if (super.canEncode(elementType, mimeType)) {
    Class<?> outputClass = elementType.toClass();
    return (outputClass.isAnnotationPresent(XmlRootElement.class) ||
        outputClass.isAnnotationPresent(XmlType.class));
  }
  else {
    return false;
  }
}
origin: spring-projects/spring-framework

@Override
public final Flux<DataBuffer> encode(Publisher<? extends T> inputStream, DataBufferFactory bufferFactory,
    ResolvableType elementType, @Nullable MimeType mimeType, @Nullable Map<String, Object> hints) {
  return Flux.from(inputStream).
      take(1).
      concatMap(t -> encode(t, bufferFactory, elementType, mimeType, hints));
}
origin: spring-projects/spring-framework

@Override
public boolean canEncode(ResolvableType elementType, @Nullable MimeType mimeType) {
  Class<?> clazz = elementType.toClass();
  return (super.canEncode(elementType, mimeType) && Resource.class.isAssignableFrom(clazz));
}
origin: org.springframework/spring-core

@Override
public final Flux<DataBuffer> encode(Publisher<? extends T> inputStream, DataBufferFactory bufferFactory,
    ResolvableType elementType, @Nullable MimeType mimeType, @Nullable Map<String, Object> hints) {
  return Flux.from(inputStream).
      take(1).
      concatMap(t -> encode(t, bufferFactory, elementType, mimeType, hints));
}
origin: org.springframework/spring-core

@Override
public boolean canEncode(ResolvableType elementType, @Nullable MimeType mimeType) {
  Class<?> clazz = elementType.toClass();
  return (super.canEncode(elementType, mimeType) && Resource.class.isAssignableFrom(clazz));
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-core

@Override
public final Flux<DataBuffer> encode(Publisher<? extends T> inputStream, DataBufferFactory bufferFactory,
    ResolvableType elementType, @Nullable MimeType mimeType, @Nullable Map<String, Object> hints) {
  return Flux.from(inputStream).
      take(1).
      concatMap(t -> encode(t, bufferFactory, elementType, mimeType, hints));
}
origin: org.springframework/spring-web

@Override
public boolean canEncode(ResolvableType elementType, @Nullable MimeType mimeType) {
  if (super.canEncode(elementType, mimeType)) {
    Class<?> outputClass = elementType.toClass();
    return (outputClass.isAnnotationPresent(XmlRootElement.class) ||
        outputClass.isAnnotationPresent(XmlType.class));
  }
  else {
    return false;
  }
}
origin: apache/servicemix-bundles

@Override
public final Flux<DataBuffer> encode(Publisher<? extends T> inputStream, DataBufferFactory bufferFactory,
    ResolvableType elementType, @Nullable MimeType mimeType, @Nullable Map<String, Object> hints) {
  return Flux.from(inputStream).
      take(1).
      concatMap(t -> encode(t, bufferFactory, elementType, mimeType, hints));
}
origin: apache/servicemix-bundles

@Override
public boolean canEncode(ResolvableType elementType, @Nullable MimeType mimeType) {
  if (super.canEncode(elementType, mimeType)) {
    Class<?> outputClass = elementType.resolve(Object.class);
    return (outputClass.isAnnotationPresent(XmlRootElement.class) ||
        outputClass.isAnnotationPresent(XmlType.class));
  }
  else {
    return false;
  }
}
origin: apache/servicemix-bundles

@Override
public boolean canEncode(ResolvableType elementType, @Nullable MimeType mimeType) {
  Class<?> clazz = elementType.toClass();
  return (super.canEncode(elementType, mimeType) && Resource.class.isAssignableFrom(clazz));
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-web

@Override
public boolean canEncode(ResolvableType elementType, @Nullable MimeType mimeType) {
  if (super.canEncode(elementType, mimeType)) {
    Class<?> outputClass = elementType.toClass();
    return (outputClass.isAnnotationPresent(XmlRootElement.class) ||
        outputClass.isAnnotationPresent(XmlType.class));
  }
  else {
    return false;
  }
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-core

@Override
public boolean canEncode(ResolvableType elementType, @Nullable MimeType mimeType) {
  Class<?> clazz = elementType.toClass();
  return (super.canEncode(elementType, mimeType) && Resource.class.isAssignableFrom(clazz));
}
org.springframework.core.codecAbstractSingleValueEncoder

Javadoc

Abstract base class for org.springframework.core.codec.Encoderclasses that can only deal with a single value.

Most used methods

  • canEncode
  • encode

Popular in Java

  • Updating database using SQL prepared statement
  • onRequestPermissionsResult (Fragment)
  • compareTo (BigDecimal)
  • runOnUiThread (Activity)
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • Dictionary (java.util)
    Note: Do not use this class since it is obsolete. Please use the Map interface for new implementatio
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • Join (org.hibernate.mapping)
  • Top plugins for Android Studio
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