org.odata4j.cxf.producer.server
Class ODataCxfServer

java.lang.Object
  extended by org.odata4j.cxf.producer.server.ODataCxfServer
All Implemented Interfaces:
ODataServer

public class ODataCxfServer
extends Object
implements ODataServer

OData server using the CXF JAX-RS implementation and Jetty as HTTP server.


Constructor Summary
ODataCxfServer(String appBaseUri)
           
ODataCxfServer(String appBaseUri, Class<? extends Application> odataApp, Class<? extends Application> rootApp)
           
 
Method Summary
 ODataCxfServer addJettyRequestHandler(org.eclipse.jetty.server.Handler handler)
           
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ODataCxfServer

public ODataCxfServer(String appBaseUri)

ODataCxfServer

public ODataCxfServer(String appBaseUri,
                      Class<? extends Application> odataApp,
                      Class<? extends Application> rootApp)
Method Detail

addJettyRequestHandler

public ODataCxfServer addJettyRequestHandler(org.eclipse.jetty.server.Handler handler)

setODataApplication

public ODataServer setODataApplication(Class<? extends Application> odataApp)
Description copied from interface: ODataServer
Sets the OData application.

Specified by:
setODataApplication in interface ODataServer
Parameters:
odataApp - the OData application class
Returns:
this server
See Also:
AbstractODataApplication, DefaultODataApplication

setRootApplication

public ODataServer setRootApplication(Class<? extends Application> rootApp)
Description copied from interface: ODataServer
Sets the root application.

Specified by:
setRootApplication in interface ODataServer
Parameters:
rootApp - the root application class
Returns:
this server
See Also:
RootApplication

start

public ODataServer start()
Description copied from interface: ODataServer
Starts the OData server.

Specified by:
start in interface ODataServer
Returns:
this server

stop

public ODataServer stop()
Description copied from interface: ODataServer
Stops the OData server.

Specified by:
stop in interface ODataServer
Returns:
this server


http://odata4j.org