Package org.apache.juneau.petstore.jetty
Class App
java.lang.Object
org.apache.juneau.petstore.jetty.App
Petstore Jetty/Microservice deployment entry point.
Locates juneau-petstore-jetty.cfg (in the working directory or on the classpath), wires Jetty via
JettyConfiguration, and mounts RootResources as the root servlet.
See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classApplication-specific configuration class contributing the top-level REST servlet and the console, API and admin boundary filters. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringSetting (system property, environment, or any registered source) listing the host names the admin resources answer to: comma-separated, no ports. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
ADMIN_ALLOWED_HOSTS_PROPERTY
Setting (system property, environment, or any registered source) listing the host names the admin resources answer to: comma-separated, no ports. Unset or blank, only the loopback namesAdminBoundary.LOOPBACK_HOSTSare answered. Independent of "petstore.api.allowedHosts".- See Also:
-
-
Constructor Details
-
App
public App()
-
-
Method Details
-
main
Entry point.- Parameters:
args- Command-line arguments forwarded toMicroservice.- Throws:
Exception- If the microservice fails to start.
-