Questions tagged [sitebricks]

A fast, light platform for web development.

Sitebricks is a simple set of libraries for web applications. Sitebricks focuses on early error detection, low-footprint code, and fast development. Powered by Guice, it also balances idiomatic Java with an emphasis on concise code.

37 questions
0
votes
3 answers

Official javadoc for Sitebricks (0.8.6)

Where can I find the official Javadoc for Sitebricks (in my case, version 0.8.6)? There is nothing on neither the Google Code Page nor on Sitebricks.org. The closest thing I could find was on Jarvana…
ecbrodie
  • 11,246
  • 21
  • 71
  • 120
0
votes
2 answers

How to sends multiple object over JSON from sitebricks client to sitebricks REST Service?

Is it possible to sends two or more object simultaneously from sitebricks client to sitebricks service ? For example, I have a Person Object and a JobApplication Object. Can I do something like this: public class ApplicationStorage { @Post …
Adelin
  • 18,144
  • 26
  • 115
  • 175
0
votes
2 answers

Sitebricks and Channel Presence Service (GAE); Also having trouble with normal servlets

In my Java Google App Engine server application, I would like to enable Channel Presence servlets in order to track connections/disconnections to/from my channels using the Channel API (as described here. I have already edited my…
ecbrodie
  • 11,246
  • 21
  • 71
  • 120
0
votes
1 answer

How to handle HTTP response with a 4xx/5xx status code, Java servlet/HttpURLConnection

In my Java servlet, there are instances where I want to return an HTTP status code signifying an error and I want the client to be able to read and handle the response based on the status code returned. For example, my application deals with the…
ecbrodie
  • 11,246
  • 21
  • 71
  • 120
0
votes
2 answers

Deserialize post/get params with Sitebricks

In sitebricks, I can easily deserialize a class from params in json format in Sitebricks @Service method like this: request.read(Person.class).as(Json.class); But how do I deserialize a class from get/post params? I know the Request object has…
Glide
  • 20,235
  • 26
  • 86
  • 135
0
votes
2 answers

How to post body in sitebricks-client?

I am using sitebricks-client to interact with REST APIs in Java. I need to do a POST with a non-empty body. How do I do that in sitebricks?
pathikrit
  • 32,469
  • 37
  • 142
  • 221
0
votes
1 answer

How to edit an entity in google sitebricks

How to edit an entity in google sitebricks is the correct way. Now I did it like this. @Show("/WEB-INF/templates/adm/editentry.html") @Decorated @At("/adm/entry/:id") public class EditEntry extends AdminLayout { @Inject private EntryService…
Rory Ye
  • 1
  • 2
1 2
3