Class RequestContentBlock

java.lang.Object
com.github.bottomlessarchive.warc.service.content.request.domain.RequestContentBlock
All Implemented Interfaces:
WarcContentBlock

public class RequestContentBlock
extends java.lang.Object
implements WarcContentBlock
  • Constructor Summary

    Constructors 
    Constructor Description
    RequestContentBlock()  
  • Method Summary

    Modifier and Type Method Description
    java.util.Optional<java.lang.String> getHeader​(java.lang.String headerName)
    Return a value of a header from the request.
    java.util.Map<java.lang.String,​java.lang.String> getHeaders()
    Return all of the headers of a WARC request.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.github.bottomlessarchive.warc.service.content.domain.WarcContentBlock

    getPayload
  • Constructor Details

  • Method Details

    • getHeader

      public java.util.Optional<java.lang.String> getHeader​(java.lang.String headerName)
      Return a value of a header from the request.
      Parameters:
      headerName - the name of the header to get the value for
      Returns:
      the value of the header
    • getHeaders

      public java.util.Map<java.lang.String,​java.lang.String> getHeaders()
      Return all of the headers of a WARC request.
      Returns:
      the headers of the response