chrispatterson240 / jsonp-jav Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/jsonp-java
License: Apache License 2.0
Automatically exported from code.google.com/p/jsonp-java
License: Apache License 2.0
Affects: v.1.0.1
It would be useful to have some unit tests for the JsonpFilter and associated
classes. I've put some up here if you'd like to take a look:
https://gist.github.com/1282985
Please feel free to use as you see fit. The tests do introduce some new test
scope dependencies (junit, hamcrest, mockito, spring-test etc) so you might
prefer to trim these down.
Thanks for contributing a very useful filter.
Cheers, Ash
Original issue reported on code.google.com by [email protected]
on 13 Oct 2011 at 12:12
Filter return callback with nothing but a wrong empty string if the
following servlets choose getWriter() but not getOutputStream() for responding.
Fixed in 1.0.1
Original issue reported on code.google.com by [email protected]
on 12 Mar 2009 at 1:15
I read the source code of jsonp-java and I found In the class
ByteArrayServletOutputStream there is a method enlarge, why shouldn't it modify
the count field in the class.
The methods named setBufferSize and getBufferSize in
HttpServletResponseContentWrapper will not get the same result because the
setBufferSize just enlarges the buf[] array in ByteArrayServletOutputStream
instance buffer without modifing the count field in buffer and getBufferSize
just return the count field of ByteArrayServletOutputStream instance.
Original issue reported on code.google.com by [email protected]
on 28 Dec 2012 at 3:08
Wiw
I want to suppress the quoted output how to do that?
The reason why I want remove that is because Ext js is not recognizing the
response as a valid json string.
Original issue reported on code.google.com by [email protected]
on 27 Jul 2012 at 4:07
When the jsonp filter tries to determine whether it should execute or not, it
calls request.getParameterMap(). This reads from the input stream. Later in my
servlet code, I get a handle to the input stream in order to read body content.
At this point, the stream has been read and I get no content from the input
stream.
Are there workarounds that will allow us to reset the input stream after the
filter reads from it?
Original issue reported on code.google.com by [email protected]
on 9 Jun 2010 at 4:42
in quote function in JsonpFilter, I can't figure out the usage of character
variable b.
Original issue reported on code.google.com by [email protected]
on 28 Dec 2012 at 4:45
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.