manage-controller

Configure OFBiz web controller mappings for request URIs, events, and views.

175|216|Updated Mar 5, 2017
One-click install
npx skills add https://github.com/apache/ofbiz-plugins --skill manage-controller
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: manage-controller
Source: https://github.com/apache/ofbiz-plugins/tree/main/ai-agent-skills/manage-controller
Command: npx skills add https://github.com/apache/ofbiz-plugins --skill manage-controller

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill streamlines the process of defining how web requests are handled and which views are displayed in Apache OFBiz, ensuring efficient and secure web application routing.

Core Features & Use Cases

  • Request Mapping: Define how specific URLs map to internal events (services, Groovy, Java).
  • View Definition: Specify how responses are rendered (screens, redirects, JSON).
  • Security Configuration: Easily set HTTPS and authentication requirements for endpoints.
  • Use Case: When adding a new feature to an OFBiz web application, use this Skill to define the URL for accessing the feature, link it to the backend service that processes the request, and specify the screen that displays the results to the user.

Quick Start

Define a new request map for the URI 'createProduct' that invokes the 'createProduct' service and maps to the 'ProductEntry' view on success or error.

Frequently Asked Questions about manage-controller

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I map OFBiz web requests to backend services and views?

To map OFBiz web requests, you define request URIs in the controller XML configuration, linking them to internal event handlers like services or Groovy scripts, and specifying response view resolutions for rendering screens or redirects.

How does OFBiz controller configuration handle security and HTTPS requirements?

OFBiz controller configuration handles security by allowing you to set HTTPS and authentication requirements directly within individual request map definitions, ensuring secure data handling and protected access for specific endpoints.

Can I create RESTful API endpoints using OFBiz request mappings?

Yes, you can create RESTful API endpoints using OFBiz request mappings by configuring controller definitions to handle specific URIs and specifying JSON responses as the view resolution for seamless data exchange.

What is the best way to configure advanced request routing in OFBiz?

The best way to configure advanced request routing in OFBiz is by utilizing preprocessors and first-visit events within the controller XML mapping, enabling structured URL design and efficient response rendering before standard event handling.

Does OFBiz controller mapping support redirecting to external URLs?

Yes, OFBiz controller mapping supports redirects. When defining response view resolutions, you can specify redirects alongside screens or JSON outputs to route users to different views or locations after request processing.

When do I need to define a new request map in OFBiz?

You need to define a new request map in OFBiz when adding a new feature to your web application, allowing you to establish the access URL, link it to the backend service, and specify the success or error display view.