-
Notifications
You must be signed in to change notification settings - Fork 0
Server #23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
LeanderK
wants to merge
21
commits into
master
Choose a base branch
from
server
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…eworked some parts
there are some small things to fix, but it is largely done |
Open
mostly tested and done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull-request adds full support for the upcoming cloud-infrastructure
please visit intellimate/Izou#52 for further information about the motivation.
This pull request introduces the package
server
to the SDK which contains an simple rest-compatible server-framework used for answering requests from the router.package
server
:BadRequestException
: this exception can be thrown inside the routing-handlers to signal an BadRequest (400)DefaultHandler
: the default implementation of the Handler-interface which checks for the correct method on handleHandler
: the handler is a simple functional interface called byRoute
when the route matches, it can either return an response or declare itself for responsibleHandlerHelper
: contains various utility methods for handling requestsInternalServerErrorException
: his exception can be thrown inside the routing-handlers to signal an InternalServerError (500)Method
: this enum represents the different commonly used methods for http-requestsNotFoundException
: this exception can be thrown inside the routing-handlers to signal an NotFound (404)Request
: this class implements the Request interface from Izou and extends it with various useful functionalityResponse
: an Response implementation and various useful methodsRoute
: this class represents a single route in the Router, e.g. /staticRouter
: this class gets called in the sdk when an request from the server was made. The Add-on can specify multiple routes and error-handlers and the router processes the request accordingly.SDKRouter
: the Router for the SDK, it also serves as an example-implementation. It servers an static html file on index and provides an html file used to render the properties-files for other addons on /template/propertiesPropertiesRouter
: the default Router for addons. It forwards calls on/
oder/index.html
to /template/properties of the SDK with some query parameters to populate the template. It also has an endpoint for the actual properties-file and a (optional) markdown description of it which will be rendered by /template/properties from the SDK.package
util
:ResourceUser
: clarified TODOpackage
add-on
AddOn
: updated to the new interface wich includes the handling of requests and links it to the default implementation (PropertiesRouter)package
sdk
:changes:
Context
: reflected changes in the Interface specified in Izouadded:
AddOnImpl
: the SDK now needs an AddonImplementation to serve the http-requests.some non-java changes:
added the necessary html-files to the resources folder and updated the pom.xml