Class MockWebScriptResponse

  • All Implemented Interfaces:
    org.springframework.extensions.webscripts.WebScriptResponse

    public class MockWebScriptResponse
    extends Object
    implements org.springframework.extensions.webscripts.WebScriptResponse
    • Constructor Detail

      • MockWebScriptResponse

        public MockWebScriptResponse()
    • Method Detail

      • setStatus

        public void setStatus​(int status)
        Specified by:
        setStatus in interface org.springframework.extensions.webscripts.WebScriptResponse
      • setHeader

        public void setHeader​(String name,
                              String value)
        Specified by:
        setHeader in interface org.springframework.extensions.webscripts.WebScriptResponse
      • addHeader

        public void addHeader​(String name,
                              String value)
        Specified by:
        addHeader in interface org.springframework.extensions.webscripts.WebScriptResponse
      • setContentType

        public void setContentType​(String contentType)
        Specified by:
        setContentType in interface org.springframework.extensions.webscripts.WebScriptResponse
      • setContentEncoding

        public void setContentEncoding​(String contentEncoding)
        Specified by:
        setContentEncoding in interface org.springframework.extensions.webscripts.WebScriptResponse
      • setCache

        public void setCache​(org.springframework.extensions.webscripts.Cache cache)
        Specified by:
        setCache in interface org.springframework.extensions.webscripts.WebScriptResponse
      • getWriter

        public Writer getWriter()
                         throws IOException
        Specified by:
        getWriter in interface org.springframework.extensions.webscripts.WebScriptResponse
        Throws:
        IOException
      • getOutputStream

        public OutputStream getOutputStream()
                                     throws IOException
        Specified by:
        getOutputStream in interface org.springframework.extensions.webscripts.WebScriptResponse
        Throws:
        IOException
      • reset

        public void reset()
        Specified by:
        reset in interface org.springframework.extensions.webscripts.WebScriptResponse
      • encodeScriptUrl

        public String encodeScriptUrl​(String url)
        Specified by:
        encodeScriptUrl in interface org.springframework.extensions.webscripts.WebScriptResponse
      • encodeResourceUrl

        public String encodeResourceUrl​(String url)
        Specified by:
        encodeResourceUrl in interface org.springframework.extensions.webscripts.WebScriptResponse
      • getEncodeScriptUrlFunction

        public String getEncodeScriptUrlFunction​(String name)
        Specified by:
        getEncodeScriptUrlFunction in interface org.springframework.extensions.webscripts.WebScriptResponse
      • getEncodeResourceUrlFunction

        public String getEncodeResourceUrlFunction​(String name)
        Specified by:
        getEncodeResourceUrlFunction in interface org.springframework.extensions.webscripts.WebScriptResponse
      • getRuntime

        public org.springframework.extensions.webscripts.Runtime getRuntime()
        Specified by:
        getRuntime in interface org.springframework.extensions.webscripts.WebScriptResponse
      • reset

        public void reset​(String arg0)
        Specified by:
        reset in interface org.springframework.extensions.webscripts.WebScriptResponse