Comments (10)
Is your question regarding how to debug the client library itself, or a project that uses the client library?
from actions-on-google-java.
I want to debug the project given with the boilerplate code.
And I want to build a spring boot project using this library.
from actions-on-google-java.
The boilerplate currently contains entry points for App Engine and AWS.
For debugging, if you wish to view logs, you can do so by visiting StackDriver Logs if you deployed your app using App Engine, or AWS CloudWatch Logs if you're using AWS lambda.
You can deploy your app using Spring Boot, however you will need to set up your own entry point class for handling requests, similar to the ones we provide for App Engine and AWS.
Spring Boot has been a popular request. Thank you for the suggestion. I will look into providing an entry point for Spring Boot for the boilerplate.
Thanks,
from actions-on-google-java.
@taycaldwell
Thank you for the response, Taylor.
from actions-on-google-java.
In Spring Boot, the requests are handled by Dispatcher Servlet, that we don't write.
Two Doubts I have:
- In Spring Boot, the way to enter the application is main method. So how can we use this library from there. i.e., the Intents will get identified
- If we need to create a different entry point for App Engine then how can that be done.
Please help, I want to understand and create an Spring boot application using this library
from actions-on-google-java.
For Spring Boot, you should have a SpringBootServletInitializer class that configures your SpringBootApplication that contains all your endpoints, such as handlePost method etc.
Similar to the entry point classes we provide for AWS and App Engine, your SpringBootApplication class can contain an instance of the class containing your intent handler methods.
When receiving a request, your entry point class will call the handleRequest method of your intent handler class.
Hope this explanation helps. If it doesn't I can try to provide examples.
from actions-on-google-java.
This is helpful. But if it is possible for you then please provide the examples too.
@SpringBootApplication
public class KtcappApplication extends SpringBootServletInitializer{
@Override
protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
return builder.sources(KtcappApplication.class);
}
public static void main(String[] args) {
SpringApplication sa = new SpringApplication(KtcappApplication.class);
sa.setLogStartupInfo(false);
sa.run(args);
}
from actions-on-google-java.
@taycaldwell
Can you share a demo project using Java/ Kotlin library with Spring Boot to make actions on google
from actions-on-google-java.
I answered a StackOverflow question with a bootstrap class using Spring Boot.
from actions-on-google-java.
@Fleker
Thank you so much, that worked and clarified my doubt too.
from actions-on-google-java.
Related Issues (20)
- Allow deserializing a request and serializing a response using streams HOT 5
- Support noInputPrompts HOT 3
- vendored googleapis proto cause duplicate-dependency-class issues
- consider dropping JSONObject from the smarthome API surface HOT 1
- SyncResponse.Payload is missing errorCode
- Smarthome integration should expose DisconnectResponse HOT 3
- report state need a Integer value type HOT 4
- Intermittent error while while calling reportState in Java HOT 1
- Smarthome integration should allow setting arbitrary data on ExecuteResponse HOT 1
- Not able play video from hls direact link into chromecast using google smart home action
- Missing features on java AoG library
- Regarding the 'NOT_FOUND: Requested Entity was not Found' error log
- Exception when the server reports the status
- How to enrich messages with content? HOT 4
- ManagedChannelImpl was not shutdown properly HOT 3
- Support for Actions on Google Console HOT 3
- why there is no field `notificationSupportedByAgent` ? HOT 4
- German umlauts (ä, ö and ü) not properly displayed and spoken. HOT 3
- FATAL EXCEPTION: java.lang.AssertionError getResourceResolver after gradle and kotlin version updated in Android project
- Security Policy violation Binary Artifacts HOT 28
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from actions-on-google-java.