// Path: Web/src/main/java/org/emerjoin/hi/web/internal/JSCommandSchedule.java
// public class JSCommandSchedule {
// 
//     private String name;
//     private Map<String,Object> parameters = new HashMap<>();
// 
//     public JSCommandSchedule(String name){
//         this(name, Collections.emptyMap());
//     }
// 
//     public JSCommandSchedule(String name, Map<String,Object> parameters){
//         this.name = name;
//         this.parameters = parameters;
//     }
// 
//     public String getName() {
//         return name;
//     }
// 
//     public Map<String, Object> getParameters() {
//         return parameters;
//     }
// }


import org.emerjoin.hi.web.internal.JSCommandSchedule;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import javax.annotation.PostConstruct;
import javax.enterprise.context.RequestScoped;
import javax.enterprise.event.Event;
import javax.inject.Inject;
import javax.servlet.ServletContext;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.HashMap;
import java.util.Map;
package org.emerjoin.hi.web;




//TODO: JavaDoc
@RequestScoped
public class RequestContext {

    public static String AJAX_HEADER_KEY = "AJAX_MVC";

    @Inject
    private AppContext appContext;

    @Inject
    private HttpServletRequest request = null;
    private HttpServletResponse response = null;

    @Inject
// Path: Web/src/main/java/org/emerjoin/hi/web/internal/JSCommandSchedule.java
// public class JSCommandSchedule {
// 
//     private String name;
//     private Map<String,Object> parameters = new HashMap<>();
// 
//     public JSCommandSchedule(String name){
//         this(name, Collections.emptyMap());
//     }
// 
//     public JSCommandSchedule(String name, Map<String,Object> parameters){
//         this.name = name;
//         this.parameters = parameters;
//     }
// 
//     public String getName() {
//         return name;
//     }
// 
//     public Map<String, Object> getParameters() {
//         return parameters;
//     }
// }


// Path: Web/src/main/java/org/emerjoin/hi/web/RequestContext.java
import org.emerjoin.hi.web.internal.JSCommandSchedule;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import javax.annotation.PostConstruct;
import javax.enterprise.context.RequestScoped;
import javax.enterprise.event.Event;
import javax.inject.Inject;
import javax.servlet.ServletContext;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.HashMap;
import java.util.Map;

package org.emerjoin.hi.web;




//TODO: JavaDoc
@RequestScoped
public class RequestContext {

    public static String AJAX_HEADER_KEY = "AJAX_MVC";

    @Inject
    private AppContext appContext;

    @Inject
    private HttpServletRequest request = null;
    private HttpServletResponse response = null;

    @Inject
    private Event<JSCommandSchedule> jsCommandScheduleEvent;