Details

    • Type: Feature Request Feature Request
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 6.0.12 EE, 6.1.0 CE RC1
    • Fix Version/s: None
    • Labels:
      None
    • Similar Issues:
      Show 5 results 

      Description

      http://svn.liferay.com/browse/portal/trunk/portal-impl/src/com/liferay/portal/util/HttpImpl.java?hb=true

      Add to method URLtoByteArray() the support to check for the header "Last-Modified" (i.e. HttpHeaders.LAST_MODIFIED) so we only download a file if it was modified. Here we could have the following approaches:

      1. the URLtoByteArray() will cache the header value (e.g. with MultiVMPoolUtil) automatically and we would pass a parameter (e.g. boolean checkLastModified) to determine if we want to use this feature or not. The cache name would be a public constant (e.g. Http.CACHE_NAME) so that we could also manipulate the cached value.
      2. the developer is responsible to cache the header value, pass it as a parameter (e.g. String lastModified) and get the updated value from the response object.

      I believe that the approach 1 is the best in terms of flexibility.

        Activity

        Hide
        Remis Baima added a comment -

        Another improvement suggestion: be able to pass the proxy configuration as a parameter to URLtoByteArray(), so that the developer can decide to use proxy or not for each request. The use case is that sometimes in a company portal we need to get content from the intranet (i.e. no proxy needed) and from the internet (i.e. proxy needed).

        Show
        Remis Baima added a comment - Another improvement suggestion: be able to pass the proxy configuration as a parameter to URLtoByteArray(), so that the developer can decide to use proxy or not for each request. The use case is that sometimes in a company portal we need to get content from the intranet (i.e. no proxy needed) and from the internet (i.e. proxy needed).
        Hide
        Randy Zhu added a comment -

        In preparation for Ideation; we are merging New Feature and Improvement tickets into a singular ticket type called “Feature Request”. Additional information to follow soon.

        Show
        Randy Zhu added a comment - In preparation for Ideation; we are merging New Feature and Improvement tickets into a singular ticket type called “Feature Request”. Additional information to follow soon.

          People

          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Days since last comment:
              2 years, 14 weeks, 2 days ago

              Development

                Structure Helper Panel