Class AS4UnifiedResponse

java.lang.Object
com.helger.servlet.response.UnifiedResponse
com.helger.phase4.servlet.AS4UnifiedResponse

public class AS4UnifiedResponse extends com.helger.servlet.response.UnifiedResponse
Special UnifiedResponse class with some sanity methods.
Author:
Philip Helger
  • Field Summary

    Fields inherited from class com.helger.servlet.response.UnifiedResponse

    DEFAULT_ALLOW_CONTENT_ON_REDIRECT, DEFAULT_ALLOW_CONTENT_ON_STATUS_CODE, DEFAULT_CONTENT_DISPOSITION_TYPE, DEFAULT_WARN_ON_DUPLICATE_COOKIES, MAX_CSS_KB_FOR_IE
  • Constructor Summary

    Constructors
    Constructor
    Description
    AS4UnifiedResponse(@NonNull com.helger.http.EHttpVersion eHTTPVersion, @NonNull com.helger.http.EHttpMethod eHTTPMethod, @NonNull jakarta.servlet.http.HttpServletRequest aHttpRequest)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    setResponseError(int nStatusCode, @NonNull String sMsg, @Nullable Throwable t)
     

    Methods inherited from class com.helger.servlet.response.UnifiedResponse

    addCookie, addCustomResponseHeader, addCustomResponseHeaders, applyToResponse, cacheControl, createSimple, disableCaching, enableCaching, getAllCookies, getCharset, getContentDispositionFilename, getContentDispositionType, getHttpMethod, getHttpVersion, getLogPrefix, getMimeType, getRequestURL, getStatusCode, hasContent, hasCookies, isAllowContentOnRedirect, isAllowContentOnStatusCode, isHttpHeaderValuesQuoteIfNecessary, isHttpHeaderValuesUnified, isRedirectDefined, isSilentMode, isStatusCodeDefined, isWarnOnDuplicateCookies, logError, logInfo, logWarn, removeAllCookies, removeCacheControl, removeCaching, removeCharset, removeContent, removeContentDispositionFilename, removeCookie, removeCustomResponseHeaders, removeETag, removeExpires, removeLastModified, removeMimeType, removeStrictTransportSecurity, removeXFrameOptions, responseHeaderMap, setAllowContentOnRedirect, setAllowContentOnStatusCode, setAllowMimeSniffing, setCacheControl, setCharset, setContent, setContent, setContent, setContentAndCharset, setContentDispositionFilename, setContentDispositionType, setCustomResponseHeader, setCustomResponseHeaders, setDownloadFilename, setEmptyContent, setETag, setETagIfApplicable, setExpires, setHttpHeaderValuesQuoteIfNecessary, setHttpHeaderValuesUnified, setLastModified, setMimeType, setMimeTypeString, setRedirect, setRedirect, setRedirect, setRedirect, setSilentMode, setStatus, setStatusUnauthorized, setStrictTransportSecurity, setWarnOnDuplicateCookies, setXFrameOptions, showRequestInfo

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • AS4UnifiedResponse

      public AS4UnifiedResponse(@NonNull com.helger.http.EHttpVersion eHTTPVersion, @NonNull com.helger.http.EHttpMethod eHTTPMethod, @NonNull jakarta.servlet.http.HttpServletRequest aHttpRequest)
  • Method Details

    • setResponseError

      public void setResponseError(@Nonnegative int nStatusCode, @NonNull String sMsg, @Nullable Throwable t)