- All Known Implementing Classes:
ProxyServiceManager
public interface SpiServiceManager
Core service methods available to Context implementations.
-
Method Summary
Modifier and Type Method Description Map<String,List<String>>formParamMap(Context ctx, String charset)Parse and return the body as form parameters.voidhandleException(SpiContext ctx, Exception e)Handle the exception.<T> TjsonRead(Class<T> clazz, SpiContext ctx)Read and return the type from json request content.voidjsonWrite(Object bean, SpiContext ctx)Write as json to response content.<E> voidjsonWriteStream(Iterator<E> iterator, SpiContext ctx)Write as json stream to response content.<E> voidjsonWriteStream(Stream<E> stream, SpiContext ctx)Write as json stream to response content.Routing.TypelookupRoutingType(String method)Return the routing type given the http method.voidmaybeClose(Object iterator)Maybe close if iterator is a AutoClosable.Map<String,List<String>>parseParamMap(String body, String charset)Parse and return the content as url encoded parameters.voidrender(Context ctx, String name, Map<String,Object> model)Render using template manager.StringrequestCharset(Context ctx)Return the character set of the request.
-
Method Details
-
jsonRead
Read and return the type from json request content. -
jsonWrite
Write as json to response content. -
jsonWriteStream
Write as json stream to response content. -
jsonWriteStream
Write as json stream to response content. -
maybeClose
Maybe close if iterator is a AutoClosable. -
lookupRoutingType
Return the routing type given the http method. -
handleException
Handle the exception. -
render
Render using template manager. -
requestCharset
Return the character set of the request. -
formParamMap
Parse and return the body as form parameters. -
parseParamMap
Parse and return the content as url encoded parameters.
-