Class DiscFilterResponse

java.lang.Object
com.yahoo.jdisc.http.filter.DiscFilterResponse

public class DiscFilterResponse extends Object
Response type for SecurityResponseFilter.
Author:
Tejal Knot, bjorncs
  • Constructor Details

    • DiscFilterResponse

      public DiscFilterResponse(HttpResponse parent)
  • Method Details

    • getAttributeNames

      public Enumeration<String> getAttributeNames()
    • getAttribute

      public Object getAttribute(String name)
    • setAttribute

      public void setAttribute(String name, Object value)
    • removeAttribute

      public void removeAttribute(String name)
    • getUntreatedHeaders

      public com.yahoo.jdisc.HeaderFields getUntreatedHeaders()
      Returns the untreatedHeaders from the parent request
    • getUntreatedCookies

      public List<Cookie> getUntreatedCookies()
      Returns the untreatedCookies from the parent request
    • setHeader

      public void setHeader(String name, String value)
      Sets a header with the given name and value.

      If the header had already been set, the new value overwrites the previous one.

    • removeHeaders

      public void removeHeaders(String name)
    • setHeaders

      public void setHeaders(String name, String value)
      Sets a header with the given name and value.

      If the header had already been set, the new value overwrites the previous one.

    • setHeaders

      public void setHeaders(String name, List<String> values)
      Sets a header with the given name and value.

      If the header had already been set, the new value overwrites the previous one.

    • addHeader

      public void addHeader(String name, String value)
      Adds a header with the given name and value
      See Also:
      • HeaderFields.add(java.lang.String, java.lang.String)
    • getHeader

      public String getHeader(String name)
    • getCookies

      public List<Cookie> getCookies()
    • setCookies

      public void setCookies(List<Cookie> cookies)
    • getStatus

      public int getStatus()
    • setStatus

      public void setStatus(int status)
    • addCookie

      public void addCookie(JDiscCookieWrapper cookie)
    • sendError

      public void sendError(int errorCode) throws IOException
      This method does not actually send the response as it does not have access to responseHandler but just sets the status. The methodName is misleading for historical reasons.
      Throws:
      IOException
    • setCookie

      public void setCookie(String name, String value)