Class DynamicResourceManager.MyResource

java.lang.Object
org.nustaq.kontraktor.webapp.javascript.DynamicResourceManager.MyResource
All Implemented Interfaces:
io.undertow.server.handlers.resource.Resource
Enclosing class:
DynamicResourceManager

public static class DynamicResourceManager.MyResource
extends java.lang.Object
implements io.undertow.server.handlers.resource.Resource
  • Field Summary

    Fields 
    Modifier and Type Field Description
    protected byte[] bytes  
    protected java.lang.String finalP  
    protected java.util.Date lastModified  
    protected java.lang.String p0  
    protected java.lang.String resType  
  • Constructor Summary

    Constructors 
    Constructor Description
    MyResource​(java.lang.String p0, java.lang.String finalP, byte[] bytes, java.lang.String resType, java.util.Date lastStartup)  
  • Method Summary

    Modifier and Type Method Description
    byte[] getBytes()  
    java.lang.String getCacheKey()  
    java.lang.Long getContentLength()  
    java.lang.String getContentType​(io.undertow.util.MimeMappings mimeMappings)  
    io.undertow.util.ETag getETag()  
    java.io.File getFile()  
    java.nio.file.Path getFilePath()  
    java.util.Date getLastModified()  
    java.lang.String getLastModifiedString()  
    java.lang.String getName()  
    java.lang.String getPath()  
    java.io.File getResourceManagerRoot()  
    java.nio.file.Path getResourceManagerRootPath()  
    java.net.URL getUrl()  
    boolean isDirectory()  
    java.util.List<io.undertow.server.handlers.resource.Resource> list()  
    void serve​(io.undertow.io.Sender sender, io.undertow.server.HttpServerExchange exchange, io.undertow.io.IoCallback completionCallback)  

    Methods inherited from class java.lang.Object

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

    • p0

      protected java.lang.String p0
    • finalP

      protected java.lang.String finalP
    • bytes

      protected byte[] bytes
    • resType

      protected java.lang.String resType
    • lastModified

      protected java.util.Date lastModified
  • Constructor Details

    • MyResource

      public MyResource​(java.lang.String p0, java.lang.String finalP, byte[] bytes, java.lang.String resType, java.util.Date lastStartup)
  • Method Details

    • getPath

      public java.lang.String getPath()
      Specified by:
      getPath in interface io.undertow.server.handlers.resource.Resource
    • getLastModified

      public java.util.Date getLastModified()
      Specified by:
      getLastModified in interface io.undertow.server.handlers.resource.Resource
    • getLastModifiedString

      public java.lang.String getLastModifiedString()
      Specified by:
      getLastModifiedString in interface io.undertow.server.handlers.resource.Resource
    • getETag

      public io.undertow.util.ETag getETag()
      Specified by:
      getETag in interface io.undertow.server.handlers.resource.Resource
    • getName

      public java.lang.String getName()
      Specified by:
      getName in interface io.undertow.server.handlers.resource.Resource
    • isDirectory

      public boolean isDirectory()
      Specified by:
      isDirectory in interface io.undertow.server.handlers.resource.Resource
    • list

      public java.util.List<io.undertow.server.handlers.resource.Resource> list()
      Specified by:
      list in interface io.undertow.server.handlers.resource.Resource
    • getContentType

      public java.lang.String getContentType​(io.undertow.util.MimeMappings mimeMappings)
      Specified by:
      getContentType in interface io.undertow.server.handlers.resource.Resource
    • serve

      public void serve​(io.undertow.io.Sender sender, io.undertow.server.HttpServerExchange exchange, io.undertow.io.IoCallback completionCallback)
      Specified by:
      serve in interface io.undertow.server.handlers.resource.Resource
    • getContentLength

      public java.lang.Long getContentLength()
      Specified by:
      getContentLength in interface io.undertow.server.handlers.resource.Resource
    • getCacheKey

      public java.lang.String getCacheKey()
      Specified by:
      getCacheKey in interface io.undertow.server.handlers.resource.Resource
    • getFile

      public java.io.File getFile()
      Specified by:
      getFile in interface io.undertow.server.handlers.resource.Resource
    • getFilePath

      public java.nio.file.Path getFilePath()
      Specified by:
      getFilePath in interface io.undertow.server.handlers.resource.Resource
    • getResourceManagerRoot

      public java.io.File getResourceManagerRoot()
      Specified by:
      getResourceManagerRoot in interface io.undertow.server.handlers.resource.Resource
    • getResourceManagerRootPath

      public java.nio.file.Path getResourceManagerRootPath()
      Specified by:
      getResourceManagerRootPath in interface io.undertow.server.handlers.resource.Resource
    • getUrl

      public java.net.URL getUrl()
      Specified by:
      getUrl in interface io.undertow.server.handlers.resource.Resource
    • getBytes

      public byte[] getBytes()