public final class HttpEndpoint extends HttpEndpoint
HttpContext
so that EndpointImpl
may load even without HttpContext
.
TODO: But what's the point? If Light-weight HTTP server isn't present,
all the publish operations will fail way. Why is it better to defer
the failure, as opposed to cause the failure as earyl as possible? -KKConstructor and Description |
---|
HttpEndpoint(Executor executor,
HttpAdapter adapter) |
Modifier and Type | Method and Description |
---|---|
<T extends EndpointReference> |
getEndpointReference(Class<T> clazz,
Element... referenceParameters) |
void |
publish(Object serverContext) |
void |
publish(String address)
Publishes this endpoint at a localhost's http address.
|
void |
stop()
Stops the published endpoint
|
create
public HttpEndpoint(Executor executor, HttpAdapter adapter)
public void publish(String address)
HttpEndpoint
publish
in class HttpEndpoint
address
- endpoint's http address
for e.g http://localhost:8080/ctxt/patternpublic void publish(Object serverContext)
public void stop()
HttpEndpoint
stop
in class HttpEndpoint
public <T extends EndpointReference> T getEndpointReference(Class<T> clazz, Element... referenceParameters)
Copyright © 2015 Oracle Corporation. All rights reserved.