Class OnmsRestService

    • Constructor Detail

      • OnmsRestService

        public OnmsRestService()

        Constructor for OnmsRestService.

    • Method Detail

      • readLock

        protected final void readLock()
      • readUnlock

        protected final void readUnlock()
      • writeLock

        protected final void writeLock()
      • writeUnlock

        protected final void writeUnlock()
      • applyQueryFilters

        protected static void applyQueryFilters​(javax.ws.rs.core.MultivaluedMap<String,​String> p,
                                                CriteriaBuilder builder)
      • getBeanWrapperForClass

        protected static org.springframework.beans.BeanWrapper getBeanWrapperForClass​(Class<?> criteriaClass)
      • removeParameter

        protected static String removeParameter​(javax.ws.rs.core.MultivaluedMap<String,​String> params,
                                                String key)
      • removeParameter

        protected static String removeParameter​(javax.ws.rs.core.MultivaluedMap<String,​String> params,
                                                String key,
                                                String defaultValue)
      • getException

        protected static <T> javax.ws.rs.WebApplicationException getException​(javax.ws.rs.core.Response.Status status,
                                                                              String msg,
                                                                              String... params)
                                                                       throws javax.ws.rs.WebApplicationException

        throwException

        Type Parameters:
        T - a T object.
        Parameters:
        status - a Response.Status object.
        msg - a String object.
        Returns:
        a T object.
        Throws:
        javax.ws.rs.WebApplicationException
      • getException

        protected static <T> javax.ws.rs.WebApplicationException getException​(javax.ws.rs.core.Response.Status status,
                                                                              Throwable t)
                                                                       throws javax.ws.rs.WebApplicationException
        Throws:
        javax.ws.rs.WebApplicationException
      • getRedirectUri

        protected static URI getRedirectUri​(javax.ws.rs.core.UriInfo uriInfo,
                                            Object... pathComponents)
      • getBadRequestResponse

        protected javax.ws.rs.core.Response getBadRequestResponse​(String message)
      • getNumericValue

        protected Integer getNumericValue​(String number)