---project-dir
|
--- src / main
| |
| --- java
| |
| --- resources
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
void handleResetEspRequest() { | |
//const char* response = "Formating the FlashFileSystem<br>Wifi-Connection reset settings, reboot ESP"; | |
//HttpServer.send( 200, "text/html", response); //Returns the HTTP response | |
delay(1000); | |
//Serial.println(F("*HS Format flash memory!")); | |
//SPIFFS.format(); | |
//Serial.println(F("*HS Done!")); | |
WiFi.disconnect(true); | |
WiFiManager wifiManager; |
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
private void downloadDummyData() { | |
final String URL = "http://vm15.htl-leonding.ac.at:8080/DummyDataGenerator/rs/person/20"; | |
JsonArrayRequest jsonRequest = new JsonArrayRequest( | |
URL, | |
new Response.Listener<JSONArray>() { | |
@Override | |
public void onResponse(JSONArray response) { | |
Log.d(TAG, response.toString()); |
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
@Override | |
public void onDrawOver(Canvas c, RecyclerView parent, | |
RecyclerView.State state) { | |
super.onDrawOver(c, parent, state); | |
// calculate left/right x-coordinates for all dividers | |
int left = parent.getPaddingLeft(); | |
int right = parent.getWidth() - parent.getPaddingRight(); | |
// for every item but the last, draw a line below it |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<project xmlns="http://maven.apache.org/POM/4.0.0" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>at.htl</groupId> | |
<artifactId>vehicle</artifactId> | |
<version>1.0-SNAPSHOT</version> | |
<packaging>war</packaging> |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd" | |
version="3.1"> | |
<context-param> | |
<param-name>javax.faces.PROJECT_STAGE</param-name> | |
<param-value>Development</param-value> | |
</context-param> | |
<context-param> |
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
package at.htl.vehicle; | |
import org.junit.BeforeClass; | |
import org.junit.Test; | |
import java.sql.*; | |
import static junit.framework.TestCase.fail; | |
import static org.hamcrest.MatcherAssert.assertThat; | |
import static org.hamcrest.core.Is.is; |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<persistence xmlns="http://xmlns.jcp.org/xml/ns/persistence" version="2.1"> | |
<persistence-unit name="myPU" transaction-type="RESOURCE_LOCAL"> | |
<class>at.htl.vehicle.entity.Vehicle</class> | |
<exclude-unlisted-classes>true</exclude-unlisted-classes> | |
<properties> | |
<property name="eclipselink.logging.level" value="FINE"/> | |
<property name="eclipselink.target-database" value="DERBY"/> | |
<!-- | |
<property name="javax.persistence.jdbc.driver" |
NewerOlder