Class RestApplication
- java.lang.Object
-
- Application
-
- com.supermap.services.rest.RestApplication
-
public class RestApplication extends ApplicationREST application class.
RestAapplication is the basic unit for the deployment of REST applications, and it is independent of the operating environment. RestAapplication can be deployed in the Restlet Component, through the configuration and a small amount of code can also be deployed to a variety of environments, such as Servlet containers, OSGI kernel, Guice Ioc containers, standalone JVMS, Groovy, Scala, JAIN / SLEE, etc.
-
-
Field Summary
Fields Modifier and Type Field and Description static java.lang.StringRESTCONTEXTNAME${services_rest_RestApplication_attribute_RESTCONTEXTNAME_Title}
-
Constructor Summary
Constructors Constructor and Description RestApplication()${services_rest_RestApplication_constructor_RestApplicationByDefault_Title}RestApplication(RestContext restContext)${services_rest_RestApplication_constructor_RestApplicationByContext_Title}
-
Method Summary
Methods Modifier and Type Method and Description voidaddFilter(Filter filter)${services_rest_RestApplication_method_addFilter_Title}voidaddResourceBinding(java.util.Map<java.lang.String,java.lang.Class<? extends ServerResource>> bindings)${services_rest_RestApplication_method_addResourceBinding_Title}booleanattach(java.lang.String urlTemplate, Restlet handler)${services_rest_RestApplication_method_attach_Title}RestletcreateInboundRoot()${services_rest_RestApplication_method_createRoot_Title}FiltergetFirstFilter()RestContextgetRestContext()${services_rest_RestApplication_method_getRestContext_Title}voidsetRestContext(RestContext restContext)${services_rest_RestApplication_method_setRestContext_Title}
-
-
-
Field Detail
-
RESTCONTEXTNAME
public static final java.lang.String RESTCONTEXTNAME
${services_rest_RestApplication_attribute_RESTCONTEXTNAME_Title}
${services_rest_RestApplication_attribute_RESTCONTEXTNAME_Description}
-
-
Constructor Detail
-
RestApplication
public RestApplication(RestContext restContext)
${services_rest_RestApplication_constructor_RestApplicationByContext_Title}
${services_rest_RestApplication_constructor_RestApplicationByContext_Description}
- Parameters:
restContext- ${services_rest_RestApplication_constructor_RestApplicationByContext_param_restContext}
-
RestApplication
public RestApplication()
${services_rest_RestApplication_constructor_RestApplicationByDefault_Title}
${services_rest_RestApplication_constructor_RestApplicationByDefault_Description}
-
-
Method Detail
-
setRestContext
public void setRestContext(RestContext restContext)
${services_rest_RestApplication_method_setRestContext_Title}
${services_rest_RestApplication_method_setRestContext_Description}
- Parameters:
restContext- ${services_rest_RestApplication_method_setRestContext_param_restContext}
-
getRestContext
public RestContext getRestContext()
${services_rest_RestApplication_method_getRestContext_Title}
${services_rest_RestApplication_method_getRestContext_Description}
- Returns:
- ${services_rest_RestApplication_method_getRestContext_return}
-
createInboundRoot
public Restlet createInboundRoot()
${services_rest_RestApplication_method_createRoot_Title}
${services_rest_RestApplication_method_createRoot_Description}
- Returns:
- ${services_rest_RestApplication_method_createRoot_return}
-
addFilter
public void addFilter(Filter filter)
${services_rest_RestApplication_method_addFilter_Title}
${services_rest_RestApplication_method_addFilter_Description}
- Parameters:
filter- ${services_rest_RestApplication_method_addFilter_param_filter}
-
addResourceBinding
public void addResourceBinding(java.util.Map<java.lang.String,java.lang.Class<? extends ServerResource>> bindings)
${services_rest_RestApplication_method_addResourceBinding_Title}
${services_rest_RestApplication_method_addResourceBinding_Description}
- Parameters:
bindings- ${services_rest_RestApplication_method_addResourceBinding_param_bindings}
-
attach
public boolean attach(java.lang.String urlTemplate, Restlet handler)${services_rest_RestApplication_method_attach_Title}
${services_rest_RestApplication_method_attach_Description}
- Parameters:
urlTemplate- ${services_rest_RestApplication_method_attach_param_urlTemplate}handler- ${services_rest_RestApplication_method_attach_param_handler}- Returns:
- ${services_rest_RestApplication_method_attach_return}
-
getFirstFilter
public Filter getFirstFilter()
-
-