Package org.apache.juneau.examples.rest
Class UtilityBeansResource
java.lang.Object
org.apache.juneau.rest.servlet.RestObject
org.apache.juneau.rest.servlet.BasicRestObject
org.apache.juneau.examples.rest.UtilityBeansResource
- All Implemented Interfaces:
BasicUniversalConfig
,DefaultConfig
,DefaultHtmlConfig
,BasicRestOperations
Sample resource that allows images to be uploaded and retrieved.
See Also:
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription[HTTP GET /utilitybeans/BeanDescription][HTTP GET /utilitybeans/Hyperlink][HTTP GET /utilitybeans/SeeOtherRoot][HTTP GET /utilitybeans]Methods inherited from class org.apache.juneau.rest.servlet.BasicRestObject
error, getFavIcon, getHtdoc, getStats, getSwagger
Methods inherited from class org.apache.juneau.rest.servlet.RestObject
doLog, getContext, getRequest, getResponse, log, log, setContext
-
Constructor Details
-
UtilityBeansResource
public UtilityBeansResource()
-
-
Method Details
-
getChildDescriptions
[HTTP GET /utilitybeans]- Returns:
- Descriptive links to the child endpoints.
-
aBeanDescription
[HTTP GET /utilitybeans/BeanDescription]- Returns:
- Example of serialized org.apache.juneau.rest.utilitybeans.ResourceDescriptions bean.
-
aHyperlink
[HTTP GET /utilitybeans/Hyperlink]- Returns:
- Example of serialized org.apache.juneau.rest.utilitybeans.Hyperlink bean.
-
aSeeOtherRoot
[HTTP GET /utilitybeans/SeeOtherRoot]- Returns:
- Example of serialized SeeOtherRoot bean. This just redirects back to the servlet root.
-