Class UndertowHttpExchange

java.lang.Object
jakarta.xml.ws.spi.http.HttpExchange
org.jboss.ws.undertow_httpspi.UndertowHttpExchange

public class UndertowHttpExchange extends jakarta.xml.ws.spi.http.HttpExchange
Author:
Jim Ma
  • Constructor Details

    • UndertowHttpExchange

      public UndertowHttpExchange(io.undertow.server.HttpServerExchange serverExchange)
  • Method Details

    • getRequestHeaders

      public Map<String,List<String>> getRequestHeaders()
      Specified by:
      getRequestHeaders in class jakarta.xml.ws.spi.http.HttpExchange
    • getRequestHeader

      public String getRequestHeader(String name)
      Specified by:
      getRequestHeader in class jakarta.xml.ws.spi.http.HttpExchange
    • getResponseHeaders

      public Map<String,List<String>> getResponseHeaders()
      Specified by:
      getResponseHeaders in class jakarta.xml.ws.spi.http.HttpExchange
    • addResponseHeader

      public void addResponseHeader(String name, String value)
      Specified by:
      addResponseHeader in class jakarta.xml.ws.spi.http.HttpExchange
    • getRequestURI

      public String getRequestURI()
      Specified by:
      getRequestURI in class jakarta.xml.ws.spi.http.HttpExchange
    • getContextPath

      public String getContextPath()
      Specified by:
      getContextPath in class jakarta.xml.ws.spi.http.HttpExchange
    • getRequestMethod

      public String getRequestMethod()
      Specified by:
      getRequestMethod in class jakarta.xml.ws.spi.http.HttpExchange
    • getHttpContext

      public jakarta.xml.ws.spi.http.HttpContext getHttpContext()
      Specified by:
      getHttpContext in class jakarta.xml.ws.spi.http.HttpExchange
    • close

      public void close() throws IOException
      Specified by:
      close in class jakarta.xml.ws.spi.http.HttpExchange
      Throws:
      IOException
    • getRequestBody

      public InputStream getRequestBody() throws IOException
      Specified by:
      getRequestBody in class jakarta.xml.ws.spi.http.HttpExchange
      Throws:
      IOException
    • getResponseBody

      public OutputStream getResponseBody() throws IOException
      Specified by:
      getResponseBody in class jakarta.xml.ws.spi.http.HttpExchange
      Throws:
      IOException
    • setStatus

      public void setStatus(int status)
      Specified by:
      setStatus in class jakarta.xml.ws.spi.http.HttpExchange
    • getRemoteAddress

      public InetSocketAddress getRemoteAddress()
      Specified by:
      getRemoteAddress in class jakarta.xml.ws.spi.http.HttpExchange
    • getLocalAddress

      public InetSocketAddress getLocalAddress()
      Specified by:
      getLocalAddress in class jakarta.xml.ws.spi.http.HttpExchange
    • getProtocol

      public String getProtocol()
      Specified by:
      getProtocol in class jakarta.xml.ws.spi.http.HttpExchange
    • getScheme

      public String getScheme()
      Specified by:
      getScheme in class jakarta.xml.ws.spi.http.HttpExchange
    • getPathInfo

      public String getPathInfo()
      Specified by:
      getPathInfo in class jakarta.xml.ws.spi.http.HttpExchange
    • getQueryString

      public String getQueryString()
      Specified by:
      getQueryString in class jakarta.xml.ws.spi.http.HttpExchange
    • getAttribute

      public Object getAttribute(String name)
      Specified by:
      getAttribute in class jakarta.xml.ws.spi.http.HttpExchange
    • getAttributeNames

      public Set<String> getAttributeNames()
      Specified by:
      getAttributeNames in class jakarta.xml.ws.spi.http.HttpExchange
    • getUserPrincipal

      public Principal getUserPrincipal()
      Specified by:
      getUserPrincipal in class jakarta.xml.ws.spi.http.HttpExchange
    • isUserInRole

      public boolean isUserInRole(String role)
      Specified by:
      isUserInRole in class jakarta.xml.ws.spi.http.HttpExchange