24 package org.lightjason.agentspeak.action.builtin.web.rest;
26 import com.fasterxml.jackson.databind.ObjectMapper;
27 import com.fasterxml.jackson.dataformat.xml.XmlMapper;
30 import javax.annotation.Nonnegative;
31 import javax.annotation.Nonnull;
32 import java.io.IOException;
51 private static final ObjectMapper
JSONMAPPER =
new ObjectMapper();
55 private static final XmlMapper
XMLMAPPER =
new XmlMapper();
83 protected static <T> T
json( @Nonnull
final String p_url, @Nonnull
final Class<T> p_class )
throws IOException
97 @SuppressWarnings(
"unchecked" )
98 protected static Map<String, ?>
xml( @Nonnull final String p_url ) throws IOException
IBaseRest(final int p_length)
ctor
final int minimalArgumentNumber()
minimum number of arguments
static Map< String, ?> xml( @Nonnull final String p_url)
reads a xml structure from an url
static String httpgetexecute( @Nonnull final String p_url)
execute http-get request
static final XmlMapper XMLMAPPER
xml mapper
static final long serialVersionUID
serial id
base class to read data from the restful service
static< T > T json( @Nonnull final String p_url, @Nonnull final Class< T > p_class)
reads a json structure from an url
static final ObjectMapper JSONMAPPER
json mapper