Package io.jans.configapi.core.rest
Class BaseResource
java.lang.Object
io.jans.configapi.core.rest.BaseResource
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcheckNotEmpty(String attribute, String attributeName) static <T> voidcheckNotEmpty(List<T> list, String attributeName) static voidcheckNotNull(String[] attributes, String attributeName) static voidcheckNotNull(String attribute, String attributeName) static voidcheckNotNull(Map<String, String> attributeMap) static <T> voidcheckResourceNotNull(T resource, String objectName) protected io.jans.model.SearchRequestcreateSearchRequest(String schemas, String filter, String sortBy, String sortOrder, Integer startIndex, Integer count, String attrsList, String excludedAttrsList, int maximumRecCount, String fieldValuePair, Class<?> entityClass) static ThrowablefindRootError(Throwable throwable) protected static jakarta.ws.rs.core.Responseprotected static jakarta.ws.rs.core.Responseprotected static jakarta.ws.rs.core.ResponsegetBadRequestException(String msg, String description) jakarta.ws.rs.core.HttpHeadersjakarta.servlet.http.HttpServletRequestprotected static jakarta.ws.rs.core.Responseprotected static jakarta.ws.rs.core.ResponsegetInternalServerException(String msg, String description) protected static jakarta.ws.rs.core.ResponsegetMissingAttributeError(String attributeName) protected static jakarta.ws.rs.core.Responseprotected static jakarta.ws.rs.core.ResponsegetNotFoundError(String objectName) protected static jakarta.ws.rs.core.ResponsegetNotFoundError(String msg, String description) getRegexPattern(String pattern) jakarta.ws.rs.core.UriInfostatic voidstatic voidstatic voidthrowBadRequestException(String msg, String description) static voidstatic voidthrowInternalServerException(String msg, String description) static voidthrowInternalServerException(String msg, Throwable throwable) static voidthrowInternalServerException(Throwable throwable) static voidthrowMissingAttributeError(String attributeName) static voidstatic voidthrowNotFoundException(String msg, String description)
-
Field Details
-
DEFAULT_SEARCH_PATTERN
- See Also:
-
-
Constructor Details
-
BaseResource
public BaseResource()
-
-
Method Details
-
getUriInfo
public jakarta.ws.rs.core.UriInfo getUriInfo() -
getHttpRequest
public jakarta.servlet.http.HttpServletRequest getHttpRequest() -
getHttpHeaders
public jakarta.ws.rs.core.HttpHeaders getHttpHeaders() -
checkResourceNotNull
-
checkNotNull
-
checkNotNull
-
checkNotNull
-
throwMissingAttributeError
-
checkNotEmpty
-
checkNotEmpty
-
throwBadRequestException
-
throwBadRequestException
-
throwBadRequestException
-
throwInternalServerException
-
throwInternalServerException
-
throwInternalServerException
-
throwInternalServerException
-
throwNotFoundException
-
throwNotFoundException
-
getMissingAttributeError
- Parameters:
attributeName-- Returns:
- Response
-
getNotFoundError
-
getNotFoundError
-
getNotAcceptableException
-
getBadRequestException
-
getBadRequestException
-
getBadRequestException
-
getInternalServerException
-
getInternalServerException
-
createSearchRequest
-
findRootError
-
getRegexPattern
-