Interface Transaction

All Superinterfaces:
TransactionContext, TransactionIdentifier
All Known Implementing Classes:
AbstractTransaction, IcapTransaction

public interface Transaction extends TransactionContext, TransactionIdentifier
  • Method Details

    • getSession

      Session getSession()
    • setSession

      void setSession(Session session)
    • isRequest

      boolean isRequest()
    • isResponse

      boolean isResponse()
    • getRequest

      io.netty.handler.codec.http.FullHttpRequest getRequest()
    • getResponse

      io.netty.handler.codec.http.FullHttpResponse getResponse()
    • setRequest

      void setRequest(io.netty.handler.codec.http.FullHttpRequest httpRequest)
    • setResponse

      void setResponse(io.netty.handler.codec.http.FullHttpResponse httpResponse)
      This method does not only set the http response object - it will make the whole transaction a response transaction, even if it was a request transaction, before!
      Parameters:
      httpResponse -
    • getUserReference

      String getUserReference()
    • getContentType

      String getContentType()
    • isPreview

      boolean isPreview()
    • isContentChanged

      boolean isContentChanged()
    • isHeadersChanged

      boolean isHeadersChanged()
    • isComplete

      boolean isComplete()
    • setComplete

      void setComplete(boolean complete)
    • block

      void block()
    • noContent

      void noContent()
    • redirect

      void redirect(String targetUrl)
    • setRedirectTarget

      void setRedirectTarget(String redirectTarget)
    • setDecision

      void setDecision(Decision decision)
    • getBaseUrl

      String getBaseUrl()
    • setBaseUrl

      void setBaseUrl(String baseUrl)
    • setFilterResult

      void setFilterResult(FilterResult result)
    • getFilterResult

      FilterResult getFilterResult()
    • setContentChanged

      void setContentChanged(boolean changed)
    • setHeadersChanged

      void setHeadersChanged(boolean changed)
    • getPageContext

      PageContext getPageContext()
    • setPageContext

      void setPageContext(PageContext pageContext)
    • getInjections

      Injections getInjections()
    • setInjections

      void setInjections(Injections injections)
    • setControlBarUrl

      void setControlBarUrl(String controlBarUrl)
      Sets the base URL from which the ControlBar iframe, icons and XMLHttpRequests are loaded. The ControlBar URL is only set when the ControlBar code should be injected into an HTML response.
      Parameters:
      controlBarUrl -
    • getControlBarUrl

      String getControlBarUrl()
      Returns the base URL from which the ControlBar iframe, icons and XMLHttpRequests are loaded.
      Returns:
      ControlBar base URL or null if the ControlBar should not be injected.
    • getContentEncoding

      ContentEncoding getContentEncoding()
    • setContentEncoding

      void setContentEncoding(ContentEncoding contentEncoding)
    • getContent

      StringBuilder getContent()
    • setContent

      void setContent(StringBuilder content)
    • setCspNonce

      void setCspNonce(String cspNonce)
      Sets the nonce that can be used to allow the injected ControlBar script in the Content-Security-Policy of the response. The nonce is only set when the ControlBar code should be injected into an HTML response.
      Parameters:
      cspNonce -
    • getCspNonce

      String getCspNonce()
      Returns the nonce that can be used to allow the injected ControlBar script in the Content-Security-Policy of the response.
      Returns:
      CSP nonce or null if the ControlBar should not be injected.