Package com.linkedin.restli.server.filter

Examples of com.linkedin.restli.server.filter.ResponseFilter


  private static final RestClient REST_CLIENT = new RestClient(CLIENT, URI_PREFIX);

  @BeforeClass
  public void initClass() throws Exception
  {
    super.init(Collections.<RequestFilter>emptyList(), ImmutableList.of(new ResponseFilter() {
      @Override
      public void onResponse(FilterRequestContext requestContext, FilterResponseContext responseContext) {
        //Add a custom header to the response to make sure that 404s/500s returned by
        //nulls in resource methods are also given a chance to experience the filter
        responseContext.getResponseHeaders().put("X-Null-Greetings-Filter", "Ack");
View Full Code Here

TOP

Related Classes of com.linkedin.restli.server.filter.ResponseFilter

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.