Sprockets EE

Base Servlets that read and write JSON objects or Protocol Buffers messages

Лицензия

Лицензия

Категории

Категории

Сеть
Группа

Группа

net.sf.sprockets
Идентификатор

Идентификатор

sprockets-ee
Последняя версия

Последняя версия

3.0.0
Дата

Дата

Тип

Тип

jar
Описание

Описание

Sprockets EE
Base Servlets that read and write JSON objects or Protocol Buffers messages
Ссылка на сайт

Ссылка на сайт

https://pushbit.github.io/sprockets-ee
Система контроля версий

Система контроля версий

https://github.com/pushbit/sprockets-ee

Скачать sprockets-ee

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/net.sf.sprockets/sprockets-ee/ -->
<dependency>
    <groupId>net.sf.sprockets</groupId>
    <artifactId>sprockets-ee</artifactId>
    <version>3.0.0</version>
</dependency>
// https://jarcasting.com/artifacts/net.sf.sprockets/sprockets-ee/
implementation 'net.sf.sprockets:sprockets-ee:3.0.0'
// https://jarcasting.com/artifacts/net.sf.sprockets/sprockets-ee/
implementation ("net.sf.sprockets:sprockets-ee:3.0.0")
'net.sf.sprockets:sprockets-ee:jar:3.0.0'
<dependency org="net.sf.sprockets" name="sprockets-ee" rev="3.0.0">
  <artifact name="sprockets-ee" type="jar" />
</dependency>
@Grapes(
@Grab(group='net.sf.sprockets', module='sprockets-ee', version='3.0.0')
)
libraryDependencies += "net.sf.sprockets" % "sprockets-ee" % "3.0.0"
[net.sf.sprockets/sprockets-ee "3.0.0"]

Зависимости

compile (3)

Идентификатор библиотеки Тип Версия
com.google.code.gson : gson jar 2.8.0
com.squareup.wire : wire-runtime jar 2.3.0-RC1
net.sf.sprockets : sprockets jar 4.0.0

provided (1)

Идентификатор библиотеки Тип Версия
javax.servlet : javax.servlet-api jar 3.1.0

test (1)

Идентификатор библиотеки Тип Версия
junit : junit jar 4.12

Модули Проекта

Данный проект не имеет модулей.

Sprockets for Java EE Javadoc Maven Central

Create Servlets that automatically read and write JSON objects or Protocol Buffers messages.

Example

Your Servlet will be sent an order in JSON and it will respond with a confirmation in JSON.

public class OrderServlet extends JsonServlet<Order, Confirmation> {
    @Override
    protected Confirmation jsonPost(Order order,
            HttpServletRequest req, HttpServletResponse resp)
            throws ServletException, IOException {
        Confirmation confirmation = process(order);
        return confirmation;
    }
}

WireServlet follows the same pattern but reads and writes Protocol Buffers messages instead of JSON objects.

Install

<dependency>
    <groupId>net.sf.sprockets</groupId>
    <artifactId>sprockets-ee</artifactId>
    <version>3.0.0</version>
</dependency>

Версии библиотеки

Версия
3.0.0
2.1.0
2.0.0