norman
7d9879d5cc
Only create UnsafeDynamicChannelBuffer if really needed. See #108
2011-12-08 14:34:30 +01:00
norman
229c8734ed
Fields in ReplayingDecoder does not need atomic nature. See #108
2011-12-08 14:27:43 +01:00
marius a. eriksen
49c797fb3e
ReplayingDecoder: keep explicit track of cleanup state.
...
This fixes a bug introduced by 1f3d35bd
whereby cleanup() won't get
run if the cumulation buffer was emptied. This is important for
codecs like HTTP: In particular, empty 200 OK responses without a
Content-Length header would fail to decode.
2011-12-07 11:19:09 -08:00
norman
766525431d
Rename the old LinkedTransferQueue to LegacyLinkedTransferQueue and fork
...
the "current" implementation of LinkedTransferQueue (from Doug Lea).
Introduce a QueueFactory which will load the right implementation
depending on the JVM version. This will make sure that the one with the
best performance is choosen and the code also works with java 5. See
#102
2011-12-07 12:08:39 +01:00
norman
0d5c7d3d2e
Make sure the cumulation Buffer is only created if really needed. See
...
#88
2011-12-01 14:12:24 +01:00
Cruz Bishop
ec9bcbd553
Removed @version tags and did some documentation
...
Some test classes are now documented
2011-12-01 21:34:25 +10:00
Veebs
181355665b
Fixed formatting.
2011-11-29 10:12:42 +11:00
Veebs
48addae927
Added support for Hybi V17 and run against Autobahn V0.4.3
2011-11-29 09:45:13 +11:00
Veebs
8efe131eb0
Fix closing handshake and run against Autobahn V0.4.3
2011-11-28 22:27:58 +11:00
Trustin Lee
e015456ae1
Add missing license headers
2011-11-24 10:22:21 +09:00
Trustin Lee
8debdb59e4
Fix weird repo mess
2011-11-24 10:18:31 +09:00
Trustin Lee
b6f8b5871c
Rename ClassloaderClassResolver to ClassLoaderClassResolver
2011-11-24 10:15:51 +09:00
norman
946d4be69e
Add constructors to make it possible to backport it to 3.2 without
...
breaking the api
2011-11-23 13:47:59 +01:00
Norman Maurer
971a7364f6
Merge pull request #75 from alepar/master
...
ObjectDecoder performance optimization
2011-11-23 03:55:35 -08:00
alepar
cee5ee5679
now able to resolve array types to classes
2011-11-23 15:18:43 +04:00
alepar
800a9fc20d
making interface public, so that others can implement it jic
2011-11-23 14:48:42 +04:00
alepar
cdbaeb86b0
adding class resolver with disabled cache, fixing unit tests
2011-11-23 02:57:32 +04:00
Ngoc Dao
c9a24729bd
Fix #72
2011-11-23 04:14:10 +09:00
alepar
7e6d07afaf
use weak cache as default cache - it doesn't break class unloading
...
providing multiple implementations for caching, each good for its own specific use-case
2011-11-22 18:16:30 +04:00
alepar
99e9da1e75
sharing classResolver cache across all CompactObjectInputStream's in the same way, as we did in ObjectDecoder
2011-11-22 18:09:37 +04:00
alepar
deb61aa021
extracting class resolving role to separate interface
2011-11-22 17:33:54 +04:00
alepar
c7cea76d2f
moving classLoader selection to constructor
2011-11-22 15:54:59 +04:00
alepar
dd567e059f
there's a more general exception in the throws list already
2011-11-22 15:51:14 +04:00
alepar
b858fab8d7
loadClass() already queries the cache, so no point in redoing it in resolveClass()
2011-11-22 15:50:52 +04:00
Trustin Lee
0850449b09
Consistent fail-fast property
...
* DelimiterBasedFrameDecoder and LengthFieldBasedFrameDecoder must
expose the fail-fast option consistently
* Renamed failImmediatelyOnTooLongFrame to failFast
2011-11-22 18:37:36 +09:00
Craig P. Motlin
b6dc30b37b
Inline redundant local variables.
2011-11-12 13:37:30 -05:00
Craig P. Motlin
ab61090572
Simplify redundant 'if' statements.
2011-11-12 13:23:40 -05:00
Craig P. Motlin
f0520dad20
Remove unnecessary calls to 'super()'.
2011-11-12 13:19:37 -05:00
Craig P. Motlin
9b9ee79f27
Remove unnecessary 'return' statements.
2011-11-12 13:15:33 -05:00
Craig P. Motlin
d073e1d14d
Replace constant array creation expression with array initializer.
2011-11-12 13:14:39 -05:00
Craig P. Motlin
e84571a5f2
Remove unnecessary semicolons.
2011-11-12 13:14:16 -05:00
Craig P. Motlin
41d4884194
Remove redundant array creations.
2011-11-12 13:08:00 -05:00
Craig P. Motlin
1213dc5ace
Remove unnecessary enum modifier.
2011-11-11 07:53:12 -05:00
Craig P. Motlin
1c698494bb
Make inner classes static where possible.
2011-11-11 07:53:11 -05:00
Craig P. Motlin
6f857d271c
Make fields static where possible.
2011-11-11 07:53:09 -05:00
Craig P. Motlin
f84a9e1c52
Add missing @Override annotations.
2011-11-11 07:53:08 -05:00
norman
1a6f8369ea
Revert changes of pull request #45
2011-11-11 08:51:00 +01:00
norman
d760b4cffe
Remove empty method which I forgot to remove before
2011-11-10 09:16:34 +01:00
norman
3856f99c03
Make failImmediatelyOnTooLongFrame configurable via a constructor
2011-11-10 09:15:16 +01:00
Norman Maurer
193acdb36c
Merge pull request #25 from aaronriekenberg/master
...
Add failImmediatelyOnTooLongFrame option to DelimiterBasedFrameDecoder and LengthFieldBasedFrameDecoder
2011-11-09 23:30:39 -08:00
Norman Maurer
b3b096834c
Merge pull request #45 from sunng87/master
...
Fix NETTY-452, add an option for whether to count length field into packet length or not
2011-11-09 11:38:46 -08:00
Craig P. Motlin
1fdab7bb95
Make fields final where possible.
2011-11-09 08:33:45 -05:00
Craig P. Motlin
8d6d2f038e
Remove redundant no-arg constructors.
2011-11-09 08:29:23 -05:00
Craig P. Motlin
13eb416b06
Remove redundant 'final' modifier from private methods.
2011-11-09 08:28:30 -05:00
Craig P. Motlin
b38cb5c081
Fix problems in Javadoc references.
2011-11-09 08:28:28 -05:00
Norman Maurer
5e925677c4
Declare field final
2011-11-09 14:03:44 +01:00
Jeff Pinner
152ea47d48
make cookie decoder behavior configurable via a constructor argument
2011-11-08 12:03:23 -08:00
Jeff Pinner
fae46dabf1
ignore HttpOnly as a cookie name instead of throwing exception
2011-11-07 12:03:34 -08:00
Cruz Bishop
507b9d0b70
Boolean operations in channel buffers
...
Adds getBoolean(index), readBoolean(), writeBoolean(value), setBoolean(index, value)
Fixes https://issues.jboss.org/browse/NETTY-344
2011-11-07 21:07:54 +10:00
Trustin Lee
53b055fc10
Merge pull request #44 from motlin/master
...
Remove unnecessary interface modifiers.
2011-11-06 21:53:50 -08:00