public class OTPApplication
extends javax.ws.rs.core.Application
Constructor and Description |
---|
OTPApplication(OTPServer server,
boolean secure)
The OTPServer provides entry points to OTP routing functionality for a collection of OTPRouters.
|
Modifier and Type | Method and Description |
---|---|
Set<Class<?>> |
getClasses()
This method registers classes with Jersey to define web resources and enable custom features.
|
Map<String,Object> |
getProperties()
Enabling tracing allows us to see how web resource names were matched from the client, in headers.
|
Set<Object> |
getSingletons()
Like getClasses, this method declares web resources, providers, and features to the JAX-RS implementation.
|
public final OTPServer server
public OTPApplication(OTPServer server, boolean secure)
server
- The OTP server to wrapsecure
- Should this server require authentication over HTTPS to access secure resources, e.g. /routers?public Set<Class<?>> getClasses()
getClasses
in class javax.ws.rs.core.Application
public Set<Object> getSingletons()
getSingletons
in class javax.ws.rs.core.Application
public Map<String,Object> getProperties()
getProperties
in class javax.ws.rs.core.Application
Copyright © 2018. All rights reserved.