Class Jetty12HttpUtils

java.lang.Object
com.github.tomakehurst.wiremock.jetty.Jetty12HttpUtils
All Implemented Interfaces:
JettyHttpUtils

public class Jetty12HttpUtils extends Object implements JettyHttpUtils
  • Field Summary

    Fields inherited from interface com.github.tomakehurst.wiremock.jetty.JettyHttpUtils

    IS_JETTY
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    socket(org.eclipse.jetty.server.Response response)
    Extracts the raw network socket of out Jetty's Response
    tlsSocket(org.eclipse.jetty.server.Response response)
    Extracts the raw network TLS socket of out Jetty's Response
    org.eclipse.jetty.io.EndPoint
    unwrapEndPoint(org.eclipse.jetty.server.Response jettyResponse)
    Unwraps Jetty's EndPoint out of the Response
    org.eclipse.jetty.server.Response
    unwrapResponse(jakarta.servlet.ServletResponse httpServletResponse)
    Unwraps Jetty's Response out of the HttpServletResponse

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Jetty12HttpUtils

      public Jetty12HttpUtils()
  • Method Details

    • unwrapResponse

      public org.eclipse.jetty.server.Response unwrapResponse(jakarta.servlet.ServletResponse httpServletResponse)
      Description copied from interface: JettyHttpUtils
      Unwraps Jetty's Response out of the HttpServletResponse
      Specified by:
      unwrapResponse in interface JettyHttpUtils
      Parameters:
      httpServletResponse - HttpServletResponse instance
      Returns:
      unwrapped Response instance
    • socket

      public Socket socket(org.eclipse.jetty.server.Response response)
      Description copied from interface: JettyHttpUtils
      Extracts the raw network socket of out Jetty's Response
      Specified by:
      socket in interface JettyHttpUtils
      Parameters:
      response - Response instance
      Returns:
      raw network socket
    • tlsSocket

      public Socket tlsSocket(org.eclipse.jetty.server.Response response)
      Description copied from interface: JettyHttpUtils
      Extracts the raw network TLS socket of out Jetty's Response
      Specified by:
      tlsSocket in interface JettyHttpUtils
      Parameters:
      response - Response instance
      Returns:
      raw network TLS socket
    • unwrapEndPoint

      public org.eclipse.jetty.io.EndPoint unwrapEndPoint(org.eclipse.jetty.server.Response jettyResponse)
      Description copied from interface: JettyHttpUtils
      Unwraps Jetty's EndPoint out of the Response
      Specified by:
      unwrapEndPoint in interface JettyHttpUtils
      Parameters:
      jettyResponse - Response instance
      Returns:
      unwrapped EndPoint instance