Class StaticInterceptor
java.lang.Object
com.predic8.membrane.core.interceptor.AbstractInterceptor
com.predic8.membrane.core.interceptor.templating.StaticInterceptor
- All Implemented Interfaces:
Interceptor
- Direct Known Subclasses:
TemplateInterceptor
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.predic8.membrane.core.interceptor.Interceptor
Interceptor.Flow -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected final JSONBeautifierprotected Stringprotected static final org.slf4j.Loggerprotected Booleanprotected StringFields inherited from class com.predic8.membrane.core.interceptor.AbstractInterceptor
name, router -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringgetName()protected OutcomehandleInternal(Message msg, Exchange exchange, Interceptor.Flow flow) handleRequest(Exchange exc) handleResponse(Exchange exc) voidinit()Called after parsing is complete and this has been added to the object tree (whose root is Router).voidsetContentType(String contentType) voidsetLocation(String location) voidvoidsetTextTemplate(String textTemplate) Methods inherited from class com.predic8.membrane.core.interceptor.AbstractInterceptor
getDisplayName, getFlow, getHelpId, getLongDescription, getMessage, getRouter, getRule, handleAbort, init, setDisplayName, setFlow
-
Field Details
-
location
-
textTemplate
-
contentType
-
pretty
-
jsonBeautifier
-
log
protected static final org.slf4j.Logger log
-
-
Constructor Details
-
StaticInterceptor
public StaticInterceptor()
-
-
Method Details
-
handleRequest
- Specified by:
handleRequestin interfaceInterceptor- Overrides:
handleRequestin classAbstractInterceptor- Throws:
Exception
-
handleResponse
- Specified by:
handleResponsein interfaceInterceptor- Overrides:
handleResponsein classAbstractInterceptor- Throws:
Exception
-
handleInternal
protected Outcome handleInternal(Message msg, Exchange exchange, Interceptor.Flow flow) throws Exception - Throws:
Exception
-
init
Description copied from class:AbstractInterceptorCalled after parsing is complete and this has been added to the object tree (whose root is Router).- Overrides:
initin classAbstractInterceptor- Throws:
Exception
-
getLocation
-
setLocation
-
getTextTemplate
-
setTextTemplate
-
getName
-
getContentType
-
setContentType
-
getPretty
-
setPretty
-
getShortDescription
- Specified by:
getShortDescriptionin interfaceInterceptor- Overrides:
getShortDescriptionin classAbstractInterceptor
-