Interface Transaction
- All Superinterfaces:
TransactionContext,TransactionIdentifier
- All Known Implementing Classes:
AbstractTransaction,IcapTransaction
-
Method Summary
Modifier and TypeMethodDescriptionvoidblock()Returns the base URL from which the ControlBar iframe, icons and XMLHttpRequests are loaded.Returns the nonce that can be used to allow the injected ControlBar script in the Content-Security-Policy of the response.io.netty.handler.codec.http.FullHttpRequestio.netty.handler.codec.http.FullHttpResponsebooleanbooleanbooleanbooleanbooleanbooleanvoidvoidvoidsetBaseUrl(String baseUrl) voidsetComplete(boolean complete) voidsetContent(StringBuilder content) voidsetContentChanged(boolean changed) voidsetContentEncoding(ContentEncoding contentEncoding) voidsetControlBarUrl(String controlBarUrl) Sets the base URL from which the ControlBar iframe, icons and XMLHttpRequests are loaded.voidsetCspNonce(String cspNonce) Sets the nonce that can be used to allow the injected ControlBar script in the Content-Security-Policy of the response.voidsetDecision(Decision decision) voidsetFilterResult(FilterResult result) voidsetHeadersChanged(boolean changed) voidsetInjections(Injections injections) voidsetPageContext(PageContext pageContext) voidsetRedirectTarget(String redirectTarget) voidsetRequest(io.netty.handler.codec.http.FullHttpRequest httpRequest) voidsetResponse(io.netty.handler.codec.http.FullHttpResponse httpResponse) This method does not only set the http response object - it will make the whole transaction a response transaction, even if it was a request transaction, before!voidsetSession(Session session) Methods inherited from interface org.eblocker.server.common.transaction.TransactionContext
getAccept, getDecision, getDomain, getRedirectTarget, getReferrer, getReferrerHostname, getSessionId, getUrl, isThirdPartyMethods inherited from interface org.eblocker.server.common.transaction.TransactionIdentifier
getOriginalClientIP, getUserAgent
-
Method Details
-
getSession
Session getSession() -
setSession
-
isRequest
boolean isRequest() -
isResponse
boolean isResponse() -
getRequest
io.netty.handler.codec.http.FullHttpRequest getRequest() -
getResponse
io.netty.handler.codec.http.FullHttpResponse getResponse() -
setRequest
void setRequest(io.netty.handler.codec.http.FullHttpRequest httpRequest) -
setResponse
void setResponse(io.netty.handler.codec.http.FullHttpResponse httpResponse) This method does not only set the http response object - it will make the whole transaction a response transaction, even if it was a request transaction, before!- Parameters:
httpResponse-
-
getUserReference
String getUserReference() -
getContentType
String getContentType() -
isPreview
boolean isPreview() -
isContentChanged
boolean isContentChanged() -
isHeadersChanged
boolean isHeadersChanged() -
isComplete
boolean isComplete() -
setComplete
void setComplete(boolean complete) -
block
void block() -
noContent
void noContent() -
redirect
-
setRedirectTarget
-
setDecision
-
getBaseUrl
String getBaseUrl() -
setBaseUrl
-
setFilterResult
-
getFilterResult
FilterResult getFilterResult() -
setContentChanged
void setContentChanged(boolean changed) -
setHeadersChanged
void setHeadersChanged(boolean changed) -
getPageContext
PageContext getPageContext() -
setPageContext
-
getInjections
Injections getInjections() -
setInjections
-
setControlBarUrl
Sets the base URL from which the ControlBar iframe, icons and XMLHttpRequests are loaded. The ControlBar URL is only set when the ControlBar code should be injected into an HTML response.- Parameters:
controlBarUrl-
-
getControlBarUrl
String getControlBarUrl()Returns the base URL from which the ControlBar iframe, icons and XMLHttpRequests are loaded.- Returns:
- ControlBar base URL or null if the ControlBar should not be injected.
-
getContentEncoding
ContentEncoding getContentEncoding() -
setContentEncoding
-
getContent
StringBuilder getContent() -
setContent
-
setCspNonce
Sets the nonce that can be used to allow the injected ControlBar script in the Content-Security-Policy of the response. The nonce is only set when the ControlBar code should be injected into an HTML response.- Parameters:
cspNonce-
-
getCspNonce
String getCspNonce()Returns the nonce that can be used to allow the injected ControlBar script in the Content-Security-Policy of the response.- Returns:
- CSP nonce or null if the ControlBar should not be injected.
-