19 Jan, 2015

3 commits


16 Jan, 2015

5 commits

  • The toString() method is now implemented and tested.
    We also decide to replace Expression constructor by a more conventional valueOf(...) factory method.
    A new Expression is now created by Expression exp = Expression.valueOf(<Expression string>);
    
    git-svn-id: https://svn.forgerock.org/openig/trunk@834 dbb9e58e-28e6-4ce0-90e8-f11d9605b710
    violette
     
  • The `Entity.isEmpty()` method relied on `InputStream.available()` returning
    something different of `0` (zero) to detect if the entity was empty or not.
    This technic is not reliable enough since the javadoc clearly states that
    this return the number of bytes that can be read **without blocking**, that
    means that the result of this method depends on the network (and to some
    extension to the web container), not entirely on the message.
    
    The idea here is to now check if the wrapped stream is the `EMPTY_STREAM` instance
    to detect if the entity is empty or not.
    This is better than the old solution because we don't rely anymore on an external
    `InputStream` implementation, but that will not detect a user provided stream with
    no data inside. This is why `isEmpty()` has been renamed to `mayContainData()`.
    There is also a new `setEmpty()` method to mark the entity as empty (simply assign
    `EMPTY_STREAM` to the wrapped stram field).
    
    git-svn-id: https://svn.forgerock.org/openig/trunk@833 dbb9e58e-28e6-4ce0-90e8-f11d9605b710
    guillaume.sauthier
     
  • git-svn-id: https://svn.forgerock.org/openig/trunk@832 dbb9e58e-28e6-4ce0-90e8-f11d9605b710
    laurent.vaills
     
  • git-svn-id: https://svn.forgerock.org/openig/trunk@831 dbb9e58e-28e6-4ce0-90e8-f11d9605b710
    laurent.vaills
     
  • git-svn-id: https://svn.forgerock.org/openig/trunk@830 dbb9e58e-28e6-4ce0-90e8-f11d9605b710
    laurent.vaills
     

15 Jan, 2015

4 commits


14 Jan, 2015

1 commit


13 Jan, 2015

5 commits


17 Dec, 2014

3 commits

  • Thanks, Guillaume.
    
    git-svn-id: https://svn.forgerock.org/openig/trunk@815 dbb9e58e-28e6-4ce0-90e8-f11d9605b710
    mark
     
  • git-svn-id: https://svn.forgerock.org/openig/trunk@814 dbb9e58e-28e6-4ce0-90e8-f11d9605b710
    mark
     
  • git-svn-id: https://svn.forgerock.org/openig/trunk@813 dbb9e58e-28e6-4ce0-90e8-f11d9605b710
    mark
     

12 Dec, 2014

1 commit


10 Dec, 2014

1 commit


08 Dec, 2014

1 commit


05 Dec, 2014

7 commits


04 Dec, 2014

3 commits


03 Dec, 2014

3 commits


02 Dec, 2014

3 commits