com.m3.octoparts.ws.AggregateResponseEnrichment

RichPartResponse

Related Doc: package AggregateResponseEnrichment

implicit final class RichPartResponse extends AnyVal

Linear Supertypes
AnyVal, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. RichPartResponse
  2. AnyVal
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new RichPartResponse(part: PartResponse)

Value Members

  1. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  2. final def ##(): Int

    Definition Classes
    Any
  3. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  4. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  5. def fullId: String

    returns

    The partId and the request-specific id. Used to uniquely identify parts when printing messages.

  6. def getClass(): Class[_ <: AnyVal]

    Definition Classes
    AnyVal → Any
  7. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  8. val part: PartResponse

  9. def printWarnings(): Unit

    Prints all parts warnings (deprecation...)

  10. def toString(): String

    Definition Classes
    Any
  11. def tryContents: Try[String]

    returns

    PartResponse.contents only if there is some non-blank contents.

  12. def tryContentsIfNoError: Try[String]

    Prints PartResponse.warnings, and try to extract PartResponse.contents only if there were no PartResponse.errors .

    Prints PartResponse.warnings, and try to extract PartResponse.contents only if there were no PartResponse.errors .

    returns

  13. def tryJson[A](implicit arg0: Reads[A]): Try[A]

    Will return a failure if - the part has no content - the JSON parsing fails (e.g.

    Will return a failure if - the part has no content - the JSON parsing fails (e.g. the content is not JSON, or the JSON is broken in some way) - the JSON deserialization fails (i.e. the JSON is valid, but cannot be deserialized into an A)

    A

    the result type, i.e. the type of the JSON-serialized object

  14. def tryJsonIfNoError[A](implicit arg0: Reads[A]): Try[A]

    Same as tryJson but only tries it when there is no PartResponse.errors

Inherited from AnyVal

Inherited from Any

Ungrouped