Package io.spring.initializr.web.project
Class ProjectRequestEvent
java.lang.Object
io.spring.initializr.web.project.ProjectRequestEvent
- Direct Known Subclasses:
ProjectFailedEvent
,ProjectGeneratedEvent
Event published when a
ProjectRequest
has been processed.- Author:
- Stephane Nicoll
- See Also:
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
ProjectRequestEvent
(ProjectRequest request, InitializrMetadata metadata) -
Method Summary
Modifier and TypeMethodDescriptionReturn the metadata that was used to generate the project.Return theProjectRequest
used to generate the project.long
Return the timestamp at which the request was processed.
-
Constructor Details
-
ProjectRequestEvent
-
-
Method Details
-
getProjectRequest
Return theProjectRequest
used to generate the project.- Returns:
- the project request
-
getTimestamp
public long getTimestamp()Return the timestamp at which the request was processed.- Returns:
- the timestamp that the request was processed
-
getMetadata
Return the metadata that was used to generate the project.- Returns:
- the metadata
-