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
 voidclose()
          close the channel.
 voidclose(int timeout)
          Graceful close the channel.
 HttpHandlergetHttpHandler()
          get http handler.
 InetSocketAddressgetLocalAddress()
          get local address.
 URLgetUrl()
          get url.
 booleanisBound()
          is bound.
 booleanisClosed()
          is closed.
 voidreset(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
Alibaba. All Rights Reserved.


NOTHING
NOTHING
Add the Maven Dependecy to your project: maven dependecy for com.amazonaws : aws-java-sdk : 1.3.14