Class WebSiteResource

java.lang.Object
com.helger.photon.app.resource.WebSiteResource

@Immutable public class WebSiteResource extends Object
A single web site resource. This class is only used internally in WebSiteResourceCache.
Author:
Philip Helger
  • Field Details

    • DEFAULT_CHARSET

      public static final Charset DEFAULT_CHARSET
  • Constructor Details

  • Method Details

    • getResourceType

      @Nonnull public final EWebSiteResourceType getResourceType()
    • getPath

      @Nonnull @Nonempty public final String getPath()
    • getResource

      @Nonnull public final com.helger.commons.io.resource.IReadableResource getResource()
    • getCharset

      @Nonnull public final Charset getCharset()
    • getContent

      @Nullable public String getContent(boolean bRegular)
    • isExisting

      public boolean isExisting()
    • getAsURLString

      @Nullable public String getAsURLString()
    • getContentHashBytes

      @Nonnull @ReturnsMutableCopy public byte[] getContentHashBytes()
    • getContentHashAsString

      @Nonnull public String getContentHashAsString()
    • getAsURL

      @Nonnull public com.helger.commons.url.ISimpleURL getAsURL(@Nonnull com.helger.web.scope.IRequestWebScopeWithoutResponse aRequestScope)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object