Package org.wicketstuff.rest.contenthandling.webserialdeserial

Examples of org.wicketstuff.rest.contenthandling.webserialdeserial.JsonTestWebSerialDeserial


  public void testRoleCheckinRequired()
  {
    // RestResourceFullAnnotated uses annotation AuthorizeInvocation
    // hence it needs a roleCheckingStrategy to be built
    exception.expect(WicketRuntimeException.class);
    new RestResourceFullAnnotated(new JsonTestWebSerialDeserial());
  }
View Full Code Here


public class MountedResource extends AbstractRestResource<JsonTestWebSerialDeserial>
{

  public MountedResource()
  {
    super(new JsonTestWebSerialDeserial());
  }
View Full Code Here

      @Override
      public IResource getResource()
      {
    return new RestResourceFullAnnotated(
      new JsonTestWebSerialDeserial(), WicketApplication.this);
      }

  });

  mountResource("/api2", new ResourceReference("regExpRestResource")
  {

      @Override
      public IResource getResource()
      {
    return new RegExpRestResource(new JsonTestWebSerialDeserial(),
      WicketApplication.this);
      }

  });

  mountResource("/api3", new ResourceReference("multiFormatRestResource")
  {

      @Override
      public IResource getResource()
      {
    MultiFormatSerialDeserial multiFormat = new MultiFormatSerialDeserial();

    multiFormat.registerSerDeser(new JsonTestWebSerialDeserial(),
      RestMimeTypes.APPLICATION_JSON);
    multiFormat.registerSerDeser(new XmlTestWebSerialDeserial(),
      RestMimeTypes.APPLICATION_XML);

    return new MultiFormatRestResource(multiFormat);
View Full Code Here

TOP

Related Classes of org.wicketstuff.rest.contenthandling.webserialdeserial.JsonTestWebSerialDeserial

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.