In package com.eden.orchid.api.resources

class com.eden.orchid.api.resources.ResourceTransformation

A Resource type that wraps another resource, optionally applying a transformation along the way.

Fields

protected var contentTransformations: MutableList
protected var contentStreamTransformations: MutableList

Constructors

constructor(resource: OrchidResource, contentTransformations: MutableList, contentStreamTransformations: MutableList)

A Resource type that wraps another resource, optionally applying a transformation along the way.

Parameters:
  • resource: OrchidResource
  • contentTransformations: MutableList
  • contentStreamTransformations: MutableList

Methods

open fun getContent(): String
Parameters:
  • No parameters
open fun getContentStream(): InputStream
Parameters:
  • No parameters
fun <T> transform(input: T, transformations: List): T
Parameters:
  • input: T
  • transformations: List