Class HtmlResponseProxy

java.lang.Object
org.apache.sling.api.servlets.HtmlResponse
org.apache.sling.servlets.post.impl.helper.HtmlResponseProxy

@Deprecated public class HtmlResponseProxy extends org.apache.sling.api.servlets.HtmlResponse
Deprecated.
The HtmlResponseProxy extends the Sling API HtmlResponse overwriting all public methods and redirecting to a proxied PostResponse. As a consequence the underlying (extended) Sling API HtmlResponse will not be fed with data and thus will remain "empty".

This class is mainly used by the deprecated AbstractSlingPostOperation for bridging into the new AbstractPostOperation.

  • Constructor Details

    • HtmlResponseProxy

      public HtmlResponseProxy(PostResponse postResponse)
      Deprecated.
  • Method Details

    • getPostResponse

      public PostResponse getPostResponse()
      Deprecated.
    • getProperty

      public <Type> Type getProperty(String name, Class<Type> type)
      Deprecated.
      Overrides:
      getProperty in class org.apache.sling.api.servlets.HtmlResponse
    • getProperty

      public Object getProperty(String name)
      Deprecated.
      Overrides:
      getProperty in class org.apache.sling.api.servlets.HtmlResponse
    • setProperty

      public void setProperty(String name, Object value)
      Deprecated.
      Overrides:
      setProperty in class org.apache.sling.api.servlets.HtmlResponse
    • getError

      public Throwable getError()
      Deprecated.
      Overrides:
      getError in class org.apache.sling.api.servlets.HtmlResponse
    • getLocation

      public String getLocation()
      Deprecated.
      Overrides:
      getLocation in class org.apache.sling.api.servlets.HtmlResponse
    • getParentLocation

      public String getParentLocation()
      Deprecated.
      Overrides:
      getParentLocation in class org.apache.sling.api.servlets.HtmlResponse
    • getPath

      public String getPath()
      Deprecated.
      Overrides:
      getPath in class org.apache.sling.api.servlets.HtmlResponse
    • getReferer

      public String getReferer()
      Deprecated.
      Overrides:
      getReferer in class org.apache.sling.api.servlets.HtmlResponse
    • getStatusCode

      public int getStatusCode()
      Deprecated.
      Overrides:
      getStatusCode in class org.apache.sling.api.servlets.HtmlResponse
    • getStatusMessage

      public String getStatusMessage()
      Deprecated.
      Overrides:
      getStatusMessage in class org.apache.sling.api.servlets.HtmlResponse
    • isCreateRequest

      public boolean isCreateRequest()
      Deprecated.
      Overrides:
      isCreateRequest in class org.apache.sling.api.servlets.HtmlResponse
    • isSuccessful

      public boolean isSuccessful()
      Deprecated.
      Overrides:
      isSuccessful in class org.apache.sling.api.servlets.HtmlResponse
    • onChange

      public void onChange(String type, String... arguments)
      Deprecated.
      Overrides:
      onChange in class org.apache.sling.api.servlets.HtmlResponse
    • onCopied

      public void onCopied(String srcPath, String dstPath)
      Deprecated.
      Overrides:
      onCopied in class org.apache.sling.api.servlets.HtmlResponse
    • onCreated

      public void onCreated(String path)
      Deprecated.
      Overrides:
      onCreated in class org.apache.sling.api.servlets.HtmlResponse
    • onDeleted

      public void onDeleted(String path)
      Deprecated.
      Overrides:
      onDeleted in class org.apache.sling.api.servlets.HtmlResponse
    • onModified

      public void onModified(String path)
      Deprecated.
      Overrides:
      onModified in class org.apache.sling.api.servlets.HtmlResponse
    • onMoved

      public void onMoved(String srcPath, String dstPath)
      Deprecated.
      Overrides:
      onMoved in class org.apache.sling.api.servlets.HtmlResponse
    • send

      public void send(javax.servlet.http.HttpServletResponse response, boolean setStatus) throws IOException
      Deprecated.
      Overrides:
      send in class org.apache.sling.api.servlets.HtmlResponse
      Throws:
      IOException
    • setCreateRequest

      public void setCreateRequest(boolean isCreateRequest)
      Deprecated.
      Overrides:
      setCreateRequest in class org.apache.sling.api.servlets.HtmlResponse
    • setError

      public void setError(Throwable error)
      Deprecated.
      Overrides:
      setError in class org.apache.sling.api.servlets.HtmlResponse
    • setLocation

      public void setLocation(String location)
      Deprecated.
      Overrides:
      setLocation in class org.apache.sling.api.servlets.HtmlResponse
    • setParentLocation

      public void setParentLocation(String parentLocation)
      Deprecated.
      Overrides:
      setParentLocation in class org.apache.sling.api.servlets.HtmlResponse
    • setPath

      public void setPath(String path)
      Deprecated.
      Overrides:
      setPath in class org.apache.sling.api.servlets.HtmlResponse
    • setReferer

      public void setReferer(String referer)
      Deprecated.
      Overrides:
      setReferer in class org.apache.sling.api.servlets.HtmlResponse
    • setStatus

      public void setStatus(int code, String message)
      Deprecated.
      Overrides:
      setStatus in class org.apache.sling.api.servlets.HtmlResponse
    • setTitle

      public void setTitle(String title)
      Deprecated.
      Overrides:
      setTitle in class org.apache.sling.api.servlets.HtmlResponse