Examples of RequestMap


Examples of org.jboss.remoting.transport.coyote.RequestMap

   public Object invoke(InvocationRequest request) throws Throwable
   {
      this.lock.lock();
      try
      {
         RequestMap rm = (RequestMap)request.getRequestPayload();
         String requestPath = (String)rm.get(HTTPMetadataConstants.PATH);
         boolean handlerExists = false;
         for (RMCallbackHandler handler : this.callbacks)
         {
            if (handler.getHandledPath().equals(requestPath))
            {
View Full Code Here

Examples of org.ofbiz.webapp.control.ConfigXMLReader.RequestMap

        // Call createSurveyResponse as an event, easier to setup and ensures parameter security
        ConfigXMLReader.Event createSurveyResponseEvent = new ConfigXMLReader.Event("service", null, "createSurveyResponse", true);
        RequestHandler rh = (RequestHandler) request.getAttribute("_REQUEST_HANDLER_");
        ConfigXMLReader.ControllerConfig controllerConfig = rh.getControllerConfig();
        String requestUri = (String) request.getAttribute("thisRequestUri");
        RequestMap requestMap = controllerConfig.requestMapMap.get(requestUri);
        String eventResponse = null;
        try {
            eventResponse = rh.runEvent(request, response, createSurveyResponseEvent, requestMap, null);
        } catch (EventHandlerException e) {
            Debug.logError(e, module);
View Full Code Here

Examples of org.ofbiz.webapp.control.ConfigXMLReader.RequestMap

        // Call createSurveyResponse as an event, easier to setup and ensures parameter security
        ConfigXMLReader.Event createSurveyResponseEvent = new ConfigXMLReader.Event("service", null, "createSurveyResponse", true);
        RequestHandler rh = (RequestHandler) request.getAttribute("_REQUEST_HANDLER_");
        ConfigXMLReader.ControllerConfig controllerConfig = rh.getControllerConfig();
        String requestUri = (String) request.getAttribute("thisRequestUri");
        RequestMap requestMap = controllerConfig.getRequestMapMap().get(requestUri);
        String eventResponse = null;
        try {
            eventResponse = rh.runEvent(request, response, createSurveyResponseEvent, requestMap, null);
        } catch (EventHandlerException e) {
            Debug.logError(e, module);
View Full Code Here

Examples of org.slim3.util.RequestMap

    private TwitterService service = new TwitterService();
    private TweetMeta meta = TweetMeta.get();

    @Override
    public Navigation run() throws Exception {
        RequestMap requestMap = new RequestMap(request);
//        int index = Integer.parseInt(requestMap.get("index").toString());
//        String content = requestMap.get("content").toString();
//        List<Tweet> listTween = service.getTweetList();
//        int maxIndex = listTween.size();
//        if (index < maxIndex) {
//            service.updateTweet(listTween.get(index).getKey(), content);
//            listTween = service.getTweetList();
//            requestScope("tweetList", listTween);
//        }
        if (validate() && (!requestMap.get("content").toString().trim().equals(""))) {
            service.updateTweet(asKey(meta.key), asLong(meta.version), requestMap);
        } else {
            return forward ("edit.jsp");
        }
        return redirect(basePath);
View Full Code Here

Examples of org.slim3.util.RequestMap

    private TwitterService service = new TwitterService();
    private TweetMeta meta = TweetMeta.get();

    @Override
    public Navigation run() throws Exception {
        RequestMap requestMap = new RequestMap(request);
        if (validate() && (!requestMap.get("content").toString().trim().equals(""))) {
            service.tweet(requestMap);
        }
        return redirect(basePath);
    }
View Full Code Here

Examples of org.slim3.util.RequestMap

     *
     * @param request
     *            the request
     */
    public Validators(HttpServletRequest request) {
        this(new RequestMap(request));
    }
View Full Code Here

Examples of org.slim3.util.RequestMap

     * Returns the request attribute value as {@link Map}.
     *
     * @return the request attribute values as {@link Map}
     */
    protected RequestMap asMap() {
        return new RequestMap(request);
    }
View Full Code Here

Examples of org.slim3.util.RequestMap

     */
    @Before
    public void setUp() throws Exception {
        servletContext = new MockServletContext();
        request = new MockHttpServletRequest(servletContext);
        parameters = new RequestMap(request);
        parameters.put(ControllerConstants.ERRORS_KEY, new Errors());
        v = new Validators(parameters);
        ApplicationMessage.setBundle("test", Locale.ENGLISH);
    }
View Full Code Here

Examples of org.slim3.util.RequestMap

     *
     * @param request
     *            the request
     */
    public Validators(HttpServletRequest request) {
        this(new RequestMap(request));
    }
View Full Code Here

Examples of org.slim3.util.RequestMap

    @Override
    public Navigation run() throws Exception {
        if (!validate()) {
            return forward("edit.jsp");
        }
        service.update(asKey(meta.key), asLong(meta.version), new RequestMap(
            request));
        return redirect(basePath);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.