// Path: janos-api/src/main/java/org/apache/olingo/odata2/janos/processor/api/extension/ExtensionContext.java
// public interface ExtensionContext {
//   String PARA_URI_INFO = "~uriinfo";
//   String PARA_ACCEPT_HEADER = "~acceptheader";
//   String PARA_REQUEST_BODY = "~requestbody";
//   String PARA_REQUEST_TYPE = "~requesttype";
// 
//   ExtensionContext addParameter(String name, Object value);
// 
//   Object getParameter(String name);
// 
//   UriInfo getUriInfo();
// 
//   String getAcceptHeader();
// 
//   InputStream getRequestBody();
// 
//   Extension.Method getRequestType();
// 
//   ODataResponse proceed() throws Exception;
// }


import org.apache.olingo.odata2.api.processor.ODataResponse;
import org.apache.olingo.odata2.api.uri.UriInfo;
import org.apache.olingo.odata2.janos.processor.api.extension.Extension;
import org.apache.olingo.odata2.janos.processor.api.extension.Extension.Method;
import org.apache.olingo.odata2.janos.processor.api.extension.ExtensionContext;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
package org.apache.olingo.odata2.janos.processor.ref.model;


/**
 * Created by mibo on 21.02.16.
 */
public class RefExtensions {

  private static final Logger LOG = LoggerFactory.getLogger(RefExtensions.class);
  private static final String EXTENSION_TEST = "ExtensionTest";

  @Extension(entitySetNames="Employees", methods={Method.GET})
// Path: janos-api/src/main/java/org/apache/olingo/odata2/janos/processor/api/extension/ExtensionContext.java
// public interface ExtensionContext {
//   String PARA_URI_INFO = "~uriinfo";
//   String PARA_ACCEPT_HEADER = "~acceptheader";
//   String PARA_REQUEST_BODY = "~requestbody";
//   String PARA_REQUEST_TYPE = "~requesttype";
// 
//   ExtensionContext addParameter(String name, Object value);
// 
//   Object getParameter(String name);
// 
//   UriInfo getUriInfo();
// 
//   String getAcceptHeader();
// 
//   InputStream getRequestBody();
// 
//   Extension.Method getRequestType();
// 
//   ODataResponse proceed() throws Exception;
// }


// Path: janos-ref/src/main/java/org/apache/olingo/odata2/janos/processor/ref/model/RefExtensions.java
import org.apache.olingo.odata2.api.processor.ODataResponse;
import org.apache.olingo.odata2.api.uri.UriInfo;
import org.apache.olingo.odata2.janos.processor.api.extension.Extension;
import org.apache.olingo.odata2.janos.processor.api.extension.Extension.Method;
import org.apache.olingo.odata2.janos.processor.api.extension.ExtensionContext;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

package org.apache.olingo.odata2.janos.processor.ref.model;


/**
 * Created by mibo on 21.02.16.
 */
public class RefExtensions {

  private static final Logger LOG = LoggerFactory.getLogger(RefExtensions.class);
  private static final String EXTENSION_TEST = "ExtensionTest";

  @Extension(entitySetNames="Employees", methods={Method.GET})
  public Object logReadAccess(ExtensionContext context) throws Exception {