Class ResolvedResourceImpl

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String contentType  
      private java.io.InputStream inputStream  
      private java.net.URI localURI  
      private java.net.URI resolvedURI  
    • Constructor Summary

      Constructors 
      Constructor Description
      ResolvedResourceImpl​(java.net.URI resolvedURI, java.net.URI localURI, java.io.InputStream stream, java.lang.String contentType)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getContentType()
      The content type of the resource.
      java.io.InputStream getInputStream()
      The input stream.
      java.net.URI getLocalURI()
      The local URI.
      java.net.URI getResolvedURI()
      The resolved URI.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • resolvedURI

        private final java.net.URI resolvedURI
      • localURI

        private final java.net.URI localURI
      • inputStream

        private final java.io.InputStream inputStream
      • contentType

        private final java.lang.String contentType
    • Constructor Detail

      • ResolvedResourceImpl

        public ResolvedResourceImpl​(java.net.URI resolvedURI,
                                    java.net.URI localURI,
                                    java.io.InputStream stream,
                                    java.lang.String contentType)
    • Method Detail

      • getResolvedURI

        public java.net.URI getResolvedURI()
        Description copied from class: ResolvedResource
        The resolved URI.

        This is the URI that should be reported as the resolved URI.

        Specified by:
        getResolvedURI in class ResolvedResource
        Returns:
        The resolved URI.
      • getLocalURI

        public java.net.URI getLocalURI()
        Description copied from class: ResolvedResource
        The local URI.

        This is the URI that was used to retrieve the resource (to open the input stream). This is usually, but not necessarily always, the same as the resolved URI.

        Specified by:
        getLocalURI in class ResolvedResource
        Returns:
        The local URI.
      • getInputStream

        public java.io.InputStream getInputStream()
        Description copied from class: ResolvedResource
        The input stream.

        This is the input stream containing the resolved resource. This may return null, in which case it is the application's responsibily to access the resource through its resolved URI.

        Specified by:
        getInputStream in class ResolvedResource
        Returns:
        The input stream that will return the content of the resolved resource.
      • getContentType

        public java.lang.String getContentType()
        Description copied from class: ResolvedResource
        The content type of the resource.

        If the resolver knows the content type of the resource (for example application/xml), it will be provided here.

        Specified by:
        getContentType in class ResolvedResource
        Returns:
        The content type, possibly null.