68 questions
1
vote
1
answer
147
views
User-Agent header cannot be removed in jodd-http
I want to send a request without User-Agent for testing purposes. I tried to use headerRemove but it doesn't work. Is there a way to achieve this?
val request = HttpRequest.get("https://example....
0
votes
1
answer
94
views
How it is possible to use jodd.http.HttpRequest to load a page content that is generated by javascript?
I try to load a page content with:
HttpResponse response2 = HttpRequest.get(_PAGE_URL).cookies(response.cookies()).send();
In a browser, the page source is full of javascript to generate the DOM, but ...
0
votes
1
answer
149
views
The connectionTimeout seems not work after setting the proxy in jodd-http(6.0.2)
Here is my code
import jodd.http.*;
import jodd.http.net.*;
public class JoddQuestion {
public static void main(String[] args) {
SocketHttpConnectionProvider connectionProvider = new ...
0
votes
1
answer
9k
views
Exception in thread "main" java.lang.ClassCastException: class [B cannot be cast to class [C ([B and [C are in module java.base of loader 'bootstrap')
I am trying to run my java project from cmd and taking back this error:
**Exception in thread "main" java.lang.ClassCastException: class [B cannot be cast to class [C ([B and [C are in ...
1
vote
1
answer
70
views
jodd cannot sent response to view
I have an app build with joy-5.0.13 where I cannot send some variable value to the template to be rendered on screen. I'm sure its something simple that I'm missing right now.
This is my action:
@...
0
votes
0
answers
174
views
Can i watch for file/folder rename events?
Trying to implement watch file/folder events like (CREATE, DELETE, MODIFY, RENAME) with java 8 to java 11 versions for multiple platforms like windows/unix/linux with java nio package
Observed ...
0
votes
1
answer
76
views
JODD json configuration in spring project
My question is simple .
MappingJackson2HttpMessageConverter
is available in spring for data serialization from any rest service to client.
Now I am working on another project and it has ...
1
vote
1
answer
122
views
How to upload multiple files with jodd-http?
How do I upload muliple files in the same request using jodd HTTP?
I've tried something like the following but only the first file was posted.
HttpRequest httpRequest = HttpRequest
.post("...
0
votes
1
answer
66
views
Which version of jodd-http is supported on jre 7?
The current version 5.0.12, I believe, is built for Java 9. Which is the last version of jodd-http to be supported for java 7?
1
vote
1
answer
44
views
Why @PetiteInject cannot inject service in DecoraManager?
I have a DecoraManager implementation : AppDecoraManager, and want to inject a service e.g.: FooService as:
@PetiteInject
FooService fooService;
When resolveDecorator() is called I want to use ...
1
vote
1
answer
69
views
How to set maxFileSize for FileUploadFactory when using Joy?
Can someone please let me know how to configure the maxFileSize for fileUploads in Jodd, when using Joy?
I've tried in joy.props, even under [joy.madvoc] section with the earlier working:
...
1
vote
2
answers
1k
views
Jodd: Not To Serialize Empty Object
Currently we are using JODD lib to do the JSON serialization. But it always serialize the empty object. I want object non-empty object to be serialized to a Json string. How can we do that?
Expecting:...
1
vote
1
answer
64
views
How to display the conversation between server and client with Jodd
In upgrading from an older version of Jodd I cannot identify how to display the conversation between the server and the client. In the past I wrote:
smtpServer.debug(true);
imapServer.setProperty("...
1
vote
1
answer
140
views
jodd mail EmailFilter does not work
I use
receiveEmailAndMarkSeen(EmailFilter.filter().flag(Flags.Flag.SEEN,true));
to filter the message which I don't read, but the function returns empty array. If I set false it returns all the ...
1
vote
2
answers
83
views
ActionResult , exception with new Jodd version
I have some code which works Ok with jodd 3.9.1 and I want to upgrade it to jodd version 4.1.4. but I have some errors:
Example:
@POST @Action
public String save(){
... some code for validation
...