com.alibaba.dubbo.remoting.http.support
Class AbstractHttpServer

java.lang.Object
  extended by com.alibaba.dubbo.remoting.http.support.AbstractHttpServer
All Implemented Interfaces:
Resetable, HttpServer
Direct Known Subclasses:
JettyHttpServer, ServletHttpServer

public abstract class AbstractHttpServer
extends Object
implements HttpServer

AbstractHttpServer

Author:
william.liangf

Constructor Summary
AbstractHttpServer(URL url, HttpHandler handler)
           
 
Method Summary
 void close()
          close the channel.
 void close(int timeout)
          Graceful close the channel.
 HttpHandler getHttpHandler()
          get http handler.
 InetSocketAddress getLocalAddress()
          get local address.
 URL getUrl()
          get url.
 boolean isBound()
          is bound.
 boolean isClosed()
          is closed.
 void reset(URL url)
          reset.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractHttpServer

public AbstractHttpServer(URL url,
                          HttpHandler handler)
Method Detail

getHttpHandler

public HttpHandler getHttpHandler()
Description copied from interface: HttpServer
get http handler.

Specified by:
getHttpHandler in interface HttpServer
Returns:
http handler.

getUrl

public URL getUrl()
Description copied from interface: HttpServer
get url.

Specified by:
getUrl in interface HttpServer
Returns:
url

reset

public void reset(URL url)
Description copied from interface: Resetable
reset.

Specified by:
reset in interface Resetable

isBound

public boolean isBound()
Description copied from interface: HttpServer
is bound.

Specified by:
isBound in interface HttpServer
Returns:
bound

getLocalAddress

public InetSocketAddress getLocalAddress()
Description copied from interface: HttpServer
get local address.

Specified by:
getLocalAddress in interface HttpServer
Returns:
local address.

close

public void close()
Description copied from interface: HttpServer
close the channel.

Specified by:
close in interface HttpServer

close

public void close(int timeout)
Description copied from interface: HttpServer
Graceful close the channel.

Specified by:
close in interface HttpServer

isClosed

public boolean isClosed()
Description copied from interface: HttpServer
is closed.

Specified by:
isClosed in interface HttpServer
Returns:
closed


Copyright © 2012–2017 Alibaba. All rights reserved.