Class AbstractRestResource

java.lang.Object
ch.tocco.nice2.rest.core.spi.AbstractRestResource
All Implemented Interfaces:
RestResource
Direct Known Subclasses:
AbstractAutoCompleteResource, AbstractEntityDocsResource, AbstractEntityValidationResource, AbstractEvaluationExecutionParticipationResource, AbstractPreActionResource, AbstractRelationResource, AbstractWidgetRestResource, AcceptConflictResource, AclBrowserResource, ActionConditionResource, AddressCheckResource, BrevoWebhook, BulkDeletionResource, CalendarEventsResource, CalendarExportResource, CalendarResource, CalendarTypesResource, CheckUsernameResource, ClientReportResource, ClientResource, ConnectPrincipalResource, ConnectQualificationNodeResource, CreateApiKeyActionResource, DashboardResource, DataProtectionReportResource, DbRefactoringResource, DeleteResource, DisplayAccountingsResource, DisplayExpressionResource, DocumentsResource, EntitiesDisplayResource, EntityDisplayResource, EntityModelResource, EntityModelsResource, EntityReportResource, EntityTemplateResource, EvaluationQualificationResource, EvaluationViewResource, EvaluationViewTreeResource, EventLogicCopyActionResource, EventRegistrationModuleResource, EventRegistrationOrderResource, EventRegistrationQuestionResource, FormResource, FormsResource, FreemarkerConfigResource, GetOpenidClaimsResource, GreenMailResource, HistoryActionResource, InitialValueGeneratorResource, InputQualificationResource, InternalDocumentsResource, LocalesBestResource, LocalesResource, LocationResource, LogFileResource, MailarchiveResource, MailingListResource, MarkingsResource, MassMutationResource, MembershipRegistrationQuestionResource, MenuResource, MenusResource, MessageResource, ModelValidationResource, ModulesResource, MultiCountResource, NotificationResource, OutlookAddInApiKeyResource, PaymentProviderActionResource, PayrexxWebhook, PreferencesResource, PrincipalInfoResource, PrincipalResource, PrincipalRolesResource, PropertyResource, QueryResource, ReloadConfigurationResource, ReportGenerationsResource, ReportResource, RequirementAdministrationResource, RestoreEntityActionResource, SearchFilterResource, SpecificWidgetConfigResource, TaskExecutionResource, TemplateEntityResource, TermsConditionResource, UserSettingsResource, ValidationResource, WidgetConfigResource, WidgetSettingsResource, WidgetShowcaseResource

public abstract class AbstractRestResource extends Object implements RestResource
Base class for all REST resources. Note that all interfaces of the subclasses must extend RestResource in order that setUriInfo(jakarta.ws.rs.core.UriInfo) can be called automatically by Jersey.
  • Field Details

    • uriInfo

      protected jakarta.ws.rs.core.UriInfo uriInfo
  • Constructor Details

    • AbstractRestResource

      public AbstractRestResource()
  • Method Details

    • setUriInfo

      @Context public void setUriInfo(jakarta.ws.rs.core.UriInfo uriInfo)
      Specified by:
      setUriInfo in interface RestResource
    • getPathParameter

      protected String getPathParameter(String name)
    • tryGetInt

      protected static Optional<Integer> tryGetInt(@Nullable @Nullable String string)