Class SunHttpJaxrsServer

java.lang.Object
org.jboss.resteasy.plugins.server.sun.http.SunHttpJaxrsServer
All Implemented Interfaces:
org.jboss.resteasy.plugins.server.embedded.EmbeddedJaxrsServer<SunHttpJaxrsServer>, org.jboss.resteasy.plugins.server.embedded.EmbeddedServer

@Deprecated public class SunHttpJaxrsServer extends Object implements org.jboss.resteasy.plugins.server.embedded.EmbeddedJaxrsServer<SunHttpJaxrsServer>
Deprecated.
Prefer using a different implementation as this relies on JDK implementation details
com.sun.net.httpserver.HttpServer adapter for Resteasy. You may instead want to create and manage your own HttpServer. Use the HttpContextBuilder class in this case to build and register a specific HttpContext.
Version:
$Revision: 1 $
Author:
Bill Burke
  • Field Details

    • context

      protected HttpContextBuilder context
      Deprecated.
    • httpServer

      protected HttpServer httpServer
      Deprecated.
    • configuredPort

      protected int configuredPort
      Deprecated.
    • runtimePort

      protected int runtimePort
      Deprecated.
    • deployment

      protected ResteasyDeployment deployment
      Deprecated.
  • Constructor Details

    • SunHttpJaxrsServer

      public SunHttpJaxrsServer()
      Deprecated.
  • Method Details

    • deploy

      public SunHttpJaxrsServer deploy()
      Deprecated.
      Specified by:
      deploy in interface org.jboss.resteasy.plugins.server.embedded.EmbeddedJaxrsServer<SunHttpJaxrsServer>
    • start

      public SunHttpJaxrsServer start()
      Deprecated.
      Specified by:
      start in interface org.jboss.resteasy.plugins.server.embedded.EmbeddedJaxrsServer<SunHttpJaxrsServer>
    • stop

      public void stop()
      Deprecated.
      Specified by:
      stop in interface org.jboss.resteasy.plugins.server.embedded.EmbeddedServer
    • getDeployment

      public ResteasyDeployment getDeployment()
      Deprecated.
      Specified by:
      getDeployment in interface org.jboss.resteasy.plugins.server.embedded.EmbeddedServer
    • setDeployment

      public SunHttpJaxrsServer setDeployment(ResteasyDeployment deployment)
      Deprecated.
      Specified by:
      setDeployment in interface org.jboss.resteasy.plugins.server.embedded.EmbeddedJaxrsServer<SunHttpJaxrsServer>
    • setPort

      public SunHttpJaxrsServer setPort(int port)
      Deprecated.
      Value is ignored if HttpServer property is set. Default value is 8080
      Specified by:
      setPort in interface org.jboss.resteasy.plugins.server.embedded.EmbeddedJaxrsServer<SunHttpJaxrsServer>
      Parameters:
      port -
    • getPort

      public int getPort()
      Deprecated.
      Gets port number of this HttpServer.
      Returns:
      port number.
    • setHostname

      public SunHttpJaxrsServer setHostname(String hostname)
      Deprecated.
      Specified by:
      setHostname in interface org.jboss.resteasy.plugins.server.embedded.EmbeddedJaxrsServer<SunHttpJaxrsServer>
    • setSecurityDomain

      public SunHttpJaxrsServer setSecurityDomain(org.jboss.resteasy.plugins.server.embedded.SecurityDomain securityDomain)
      Deprecated.
      Setting a security domain will turn on Basic Authentication
      Specified by:
      setSecurityDomain in interface org.jboss.resteasy.plugins.server.embedded.EmbeddedJaxrsServer<SunHttpJaxrsServer>
      Parameters:
      securityDomain -
    • setRootResourcePath

      public SunHttpJaxrsServer setRootResourcePath(String rootResourcePath)
      Deprecated.
      Specified by:
      setRootResourcePath in interface org.jboss.resteasy.plugins.server.embedded.EmbeddedJaxrsServer<SunHttpJaxrsServer>
    • setHttpServer

      public SunHttpJaxrsServer setHttpServer(HttpServer httpServer)
      Deprecated.
      If you do not provide an HttpServer instance, one will be created on startup
      Parameters:
      httpServer -