|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.odata4j.jersey.producer.server.ODataJerseyServer
public class ODataJerseyServer
OData server using the Jersey JAX-RS and Sun's HTTP server implementation.
Constructor Summary | |
---|---|
ODataJerseyServer(String appBaseUri)
|
|
ODataJerseyServer(String appBaseUri,
Class<? extends Application> odataApp,
Class<? extends Application> rootApp)
|
Method Summary | ||
---|---|---|
ODataJerseyServer |
addHttpServerFilter(com.sun.net.httpserver.Filter filter)
|
|
|
addJerseyRequestFilter(Class<T> filter)
|
|
|
addJerseyResourceFilter(Class<T> filter)
|
|
|
addJerseyResponseFilter(Class<T> filter)
|
|
protected Map<String,Object> |
buildPropertiesAndFeatures()
|
|
protected Iterable<com.sun.net.httpserver.HttpContext> |
getHttpContexts()
|
|
protected com.sun.net.httpserver.HttpServer |
getHttpServer()
|
|
protected void |
initHttpContext(com.sun.net.httpserver.HttpContext context)
|
|
ODataJerseyServer |
setHttpServerAuthenticator(com.sun.net.httpserver.Authenticator authenticator)
|
|
ODataJerseyServer |
setJerseyFeature(String feature,
boolean value)
|
|
ODataJerseyServer |
setJerseyTrace(boolean enabled)
Enabling this feature can be useful in tracking down issues related to selecting the resource class |
|
ODataServer |
setODataApplication(Class<? extends Application> odataApp)
Sets the OData application. |
|
ODataServer |
setRootApplication(Class<? extends Application> rootApp)
Sets the root application. |
|
ODataServer |
start()
Starts the OData server. |
|
ODataServer |
stop()
Stops the OData server. |
|
ODataJerseyServer |
stop(int delaySeconds)
Stops synchronously, handy for unit test scenarios. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ODataJerseyServer(String appBaseUri)
public ODataJerseyServer(String appBaseUri, Class<? extends Application> odataApp, Class<? extends Application> rootApp)
Method Detail |
---|
public ODataJerseyServer addHttpServerFilter(com.sun.net.httpserver.Filter filter)
public <T extends ContainerRequestFilter> ODataJerseyServer addJerseyRequestFilter(Class<T> filter)
public <T extends ResourceFilterFactory> ODataJerseyServer addJerseyResourceFilter(Class<T> filter)
public <T extends ContainerResponseFilter> ODataJerseyServer addJerseyResponseFilter(Class<T> filter)
protected Map<String,Object> buildPropertiesAndFeatures()
protected Iterable<com.sun.net.httpserver.HttpContext> getHttpContexts()
protected com.sun.net.httpserver.HttpServer getHttpServer()
protected void initHttpContext(com.sun.net.httpserver.HttpContext context)
public ODataJerseyServer setHttpServerAuthenticator(com.sun.net.httpserver.Authenticator authenticator)
public ODataJerseyServer setJerseyFeature(String feature, boolean value)
public ODataJerseyServer setJerseyTrace(boolean enabled)
public ODataServer setODataApplication(Class<? extends Application> odataApp)
ODataServer
setODataApplication
in interface ODataServer
odataApp
- the OData application class
AbstractODataApplication
,
DefaultODataApplication
public ODataServer setRootApplication(Class<? extends Application> rootApp)
ODataServer
setRootApplication
in interface ODataServer
rootApp
- the root application class
RootApplication
public ODataServer start()
ODataServer
start
in interface ODataServer
public ODataServer stop()
ODataServer
stop
in interface ODataServer
public ODataJerseyServer stop(int delaySeconds)
delaySeconds
- seconds to wait for clean termination
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |