Giter Club home page Giter Club logo

jsonp-jav's People

jsonp-jav's Issues

Add unit tests for the Jsonp filter

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

Something confusing in source code.

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

How do I suppress quote outputs?

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

Call to getParameters is crushing downstream use

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.