Skip to content

Resource.isFile() and JAF MediaTypeFactory [SPR-14484] #19053

Closed

Description

@spring-projects-issues

Juergen Hoeller opened SPR-14484 and commented

Two common delegates have been in demand for a while and are now strongly suggested by our reactive efforts:

  • A Resource.isFile() indicator for whether Resource.getFile() would succeed. This can make use of default methods in the interface, like isReadable() and isOpen().

  • A MediaTypeFactory in org.springframework.http, resolving content type values to MediaType instances via the Java Activation Framework (remaining an implementation detail).


Issue Links:

Referenced from: commits 8bb34bc

Activity

  1. added
    type: enhancement
    in: core
    on Jan 11, 2019
  2. added this to the 5.0 M1 milestone on Jan 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

in: coretype: enhancement

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions