How gregwhitaker/catnap works
Main Components
a) Core Components (catnap-core):
• Query Processing System
• Parser
• Processor
• Model Builder
• View Rendering System
• JSON View
• JSONP View
• Context Management
b) Framework Integration Modules:
• Spring Integration (catnap-spring)
• Spring Boot Integration (catnap-springboot)
• JAX-RS Integration (catnap-jaxrs)
┌─────────────────────────────────────────────────────────┐
• Client Applications │
• ┘
• ↓
┌─────────────────────────────────────────────────────────┐
• Framework Integration Layer │
• ┬──────────────┬────────────┬──────────────┤
• SpringMVC │ Spring Boot │ RESTEasy │ Jersey │
• ┴──────────────┴────────────┴──────────────┘
• ↓
┌─────────────────────────────────────────────────────────┐
• Catnap Core │
• ┬──────────────┬───────────────────────────┤
• Query │ Model │ View │
• Processing │ Building │ Rendering │
• ┴──────────────┴───────────────────────────┘
Component Relationships
• Request flow from client through framework adapters to core
• Data transformation flow through query processing
• Response flow back through view rendering
Detailed Elements
a) Query Processing:
┌─────────────────────┐
• Query Processing │
• ┤
• Query Parser │
• Expression Parser │
• Query Processor │
• Query Builder │
• ┘
b) View Rendering:
┌─────────────────────┐
• View Rendering │
• ┤
• JSON View │
• JSONP View │
• View Resolvers │
• ┘
Important Notes
• Clear separation between framework-specific code and core functionality
• Query processing pipeline
• Where partial response filtering occurs
• Integration points with supported frameworks
The request/response transformation pipeline
This system design should help developers understand both the high-level architecture and the specific components that enable Catnap's partial response functionality.