├── .gitattributes ├── .github └── FUNDING.yml ├── Images ├── approve.png ├── book.png ├── current.png ├── features.png ├── itenary.png ├── login.png ├── main.png ├── main2.png ├── tomcat-users-xml.png └── tomcat.png ├── LICENSE ├── Project ├── TurkishAirlines │ ├── Libs │ │ ├── commons-lang-2.6.jar │ │ ├── commons-logging-1.1.1.jar │ │ ├── gson-2.2.2.jar │ │ ├── hsqldb-2.3.1.jar │ │ ├── jackcess-2.1.6.jar │ │ ├── javax.mail.jar │ │ └── ucanaccess-4.0.1.jar │ ├── build.xml │ ├── build │ │ └── web │ │ │ ├── ApproveFeatures.jsp │ │ │ ├── ApproveSeats.jsp │ │ │ ├── BookFlight.jsp │ │ │ ├── ChangeFeatures.jsp │ │ │ ├── CurrentBooking.jsp │ │ │ ├── ErrorPage.jsp │ │ │ ├── META-INF │ │ │ ├── MANIFEST.MF │ │ │ └── context.xml │ │ │ ├── SetSeats.jsp │ │ │ ├── ShowFlights.jsp │ │ │ ├── ShowItinery.jsp │ │ │ ├── Templates │ │ │ ├── AdminHeader.jsp │ │ │ ├── AdminPanel.jsp │ │ │ ├── CustomerHeader.jsp │ │ │ ├── Footer.jsp │ │ │ ├── HeadMetaInfo.jsp │ │ │ └── ManagerPanel.jsp │ │ │ ├── WEB-INF │ │ │ ├── Login.jsp │ │ │ ├── classes │ │ │ │ ├── .netbeans_automatic_build │ │ │ │ ├── .netbeans_update_resources │ │ │ │ ├── CustomerManager.class │ │ │ │ ├── LoginManager.class │ │ │ │ ├── LogoutManager.class │ │ │ │ ├── OriginCompleter.class │ │ │ │ ├── SContextListener.class │ │ │ │ ├── admin │ │ │ │ │ ├── ChangeFeatures.class │ │ │ │ │ └── SetSeats.class │ │ │ │ ├── airlines.accdb │ │ │ │ ├── customer │ │ │ │ │ ├── BookFlight.class │ │ │ │ │ ├── ChooseFlight.class │ │ │ │ │ ├── CurrentBooking.class │ │ │ │ │ └── SearchFlights.class │ │ │ │ ├── filters │ │ │ │ │ ├── SecurityFilter.class │ │ │ │ │ ├── XSSFilter.class │ │ │ │ │ └── XSSRequestWrapper.class │ │ │ │ ├── manager │ │ │ │ │ ├── ApproveFeatures.class │ │ │ │ │ ├── ApproveSeats.class │ │ │ │ │ ├── DisapproveFeatures.class │ │ │ │ │ └── DisapproveSeats.class │ │ │ │ ├── models │ │ │ │ │ ├── Customer.class │ │ │ │ │ ├── Employee.class │ │ │ │ │ ├── FBS.class │ │ │ │ │ ├── Features.class │ │ │ │ │ ├── Flight.class │ │ │ │ │ ├── Person.class │ │ │ │ │ └── Seat.class │ │ │ │ └── webservices │ │ │ │ │ └── PriceAndSeats.class │ │ │ ├── lib │ │ │ │ ├── activation.jar │ │ │ │ ├── commons-lang-2.6.jar │ │ │ │ ├── commons-logging-1.1.1.jar │ │ │ │ ├── gson-2.2.2.jar │ │ │ │ ├── hsqldb-2.3.1.jar │ │ │ │ ├── jackcess-2.1.6.jar │ │ │ │ ├── javax.mail.jar │ │ │ │ ├── ucanaccess-4.0.1.jar │ │ │ │ ├── webservices-api.jar │ │ │ │ ├── webservices-extra-api.jar │ │ │ │ ├── webservices-extra.jar │ │ │ │ ├── webservices-rt.jar │ │ │ │ └── webservices-tools.jar │ │ │ ├── sun-jaxws.xml │ │ │ └── web.xml │ │ │ ├── assets │ │ │ ├── autocompleter.js │ │ │ ├── css │ │ │ │ ├── bootstrap.min.css │ │ │ │ ├── carousel.css │ │ │ │ ├── form-elements.css │ │ │ │ └── style.css │ │ │ ├── img │ │ │ │ ├── dashboard.jpg │ │ │ │ ├── galaxy.jpg │ │ │ │ ├── itinerary.jpg │ │ │ │ ├── main.jpg │ │ │ │ ├── milky.jpg │ │ │ │ ├── nav.jpg │ │ │ │ ├── sign.jpg │ │ │ │ └── status.jpg │ │ │ └── js │ │ │ │ ├── jquery-1.11.1.js │ │ │ │ ├── jquery-1.11.1.min.js │ │ │ │ ├── jquery.backstretch.js │ │ │ │ ├── jquery.backstretch.min.js │ │ │ │ ├── placeholder.js │ │ │ │ └── scripts.js │ │ │ └── home.jsp │ ├── nbproject │ │ ├── ant-deploy.xml │ │ ├── build-impl.xml │ │ ├── genfiles.properties │ │ ├── jax-ws.xml │ │ ├── jaxws-build.xml │ │ ├── private │ │ │ ├── private.properties │ │ │ └── private.xml │ │ ├── project.properties │ │ └── project.xml │ ├── src │ │ ├── conf │ │ │ └── MANIFEST.MF │ │ └── java │ │ │ ├── CustomerManager.java │ │ │ ├── LoginManager.java │ │ │ ├── LogoutManager.java │ │ │ ├── OriginCompleter.java │ │ │ ├── SContextListener.java │ │ │ ├── admin │ │ │ ├── ChangeFeatures.java │ │ │ └── SetSeats.java │ │ │ ├── airlines.accdb │ │ │ ├── customer │ │ │ ├── BookFlight.java │ │ │ ├── ChooseFlight.java │ │ │ ├── CurrentBooking.java │ │ │ └── SearchFlights.java │ │ │ ├── filters │ │ │ ├── SecurityFilter.java │ │ │ ├── XSSFilter.java │ │ │ └── XSSRequestWrapper.java │ │ │ ├── manager │ │ │ ├── ApproveFeatures.java │ │ │ ├── ApproveSeats.java │ │ │ ├── DisapproveFeatures.java │ │ │ └── DisapproveSeats.java │ │ │ ├── models │ │ │ ├── Customer.java │ │ │ ├── Employee.java │ │ │ ├── FBS.java │ │ │ ├── Features.java │ │ │ ├── Flight.java │ │ │ ├── Person.java │ │ │ └── Seat.java │ │ │ └── webservices │ │ │ └── PriceAndSeats.java │ └── web │ │ ├── ApproveFeatures.jsp │ │ ├── ApproveSeats.jsp │ │ ├── BookFlight.jsp │ │ ├── ChangeFeatures.jsp │ │ ├── CurrentBooking.jsp │ │ ├── ErrorPage.jsp │ │ ├── META-INF │ │ └── context.xml │ │ ├── SetSeats.jsp │ │ ├── ShowFlights.jsp │ │ ├── ShowItinery.jsp │ │ ├── Templates │ │ ├── AdminHeader.jsp │ │ ├── AdminPanel.jsp │ │ ├── CustomerHeader.jsp │ │ ├── Footer.jsp │ │ ├── HeadMetaInfo.jsp │ │ └── ManagerPanel.jsp │ │ ├── WEB-INF │ │ ├── Login.jsp │ │ ├── sun-jaxws.xml │ │ └── web.xml │ │ ├── assets │ │ ├── autocompleter.js │ │ ├── css │ │ │ ├── bootstrap.min.css │ │ │ ├── carousel.css │ │ │ ├── form-elements.css │ │ │ └── style.css │ │ ├── img │ │ │ ├── dashboard.jpg │ │ │ ├── galaxy.jpg │ │ │ ├── itinerary.jpg │ │ │ ├── main.jpg │ │ │ ├── milky.jpg │ │ │ ├── nav.jpg │ │ │ ├── sign.jpg │ │ │ └── status.jpg │ │ └── js │ │ │ ├── jquery-1.11.1.js │ │ │ ├── jquery-1.11.1.min.js │ │ │ ├── jquery.backstretch.js │ │ │ ├── jquery.backstretch.min.js │ │ │ ├── placeholder.js │ │ │ └── scripts.js │ │ └── home.jsp └── WSTester │ ├── build.xml │ ├── build │ ├── built-jar.properties │ ├── classes │ │ ├── META-INF │ │ │ ├── jax-ws-catalog.xml │ │ │ └── wsdl │ │ │ │ └── localhost_8084 │ │ │ │ └── TurkishAirlines │ │ │ │ ├── PriceAndSeats.wsdl │ │ │ │ └── PriceAndSeats.xsd_1.xsd │ │ ├── webservices │ │ │ ├── GetAvailableSeats.class │ │ │ ├── GetAvailableSeatsResponse.class │ │ │ ├── GetSeatPrice.class │ │ │ ├── GetSeatPriceResponse.class │ │ │ ├── ObjectFactory.class │ │ │ ├── PriceAndSeats.class │ │ │ ├── PriceAndSeats_Service.class │ │ │ └── package-info.class │ │ └── wstester │ │ │ └── Main.class │ ├── generated-sources │ │ └── jax-ws │ │ │ └── webservices │ │ │ ├── GetAvailableSeats.java │ │ │ ├── GetAvailableSeatsResponse.java │ │ │ ├── GetSeatPrice.java │ │ │ ├── GetSeatPriceResponse.java │ │ │ ├── ObjectFactory.java │ │ │ ├── PriceAndSeats.java │ │ │ ├── PriceAndSeats_Service.java │ │ │ └── package-info.java │ └── generated │ │ └── jax-wsCache │ │ └── PriceAndSeats │ │ └── webservices │ │ ├── GetAvailableSeats.java │ │ ├── GetAvailableSeatsResponse.java │ │ ├── GetSeatPrice.java │ │ ├── GetSeatPriceResponse.java │ │ ├── ObjectFactory.java │ │ ├── PriceAndSeats.java │ │ ├── PriceAndSeats_Service.java │ │ └── package-info.java │ ├── catalog.xml │ ├── manifest.mf │ ├── nbproject │ ├── build-impl.xml │ ├── genfiles.properties │ ├── jax-ws.xml │ ├── jaxws-build.xml │ ├── private │ │ ├── private.properties │ │ └── private.xml │ ├── project.properties │ └── project.xml │ ├── src │ ├── META-INF │ │ ├── jax-ws-catalog.xml │ │ └── wsdl │ │ │ └── localhost_8084 │ │ │ └── TurkishAirlines │ │ │ ├── PriceAndSeats.wsdl │ │ │ └── PriceAndSeats.xsd_1.xsd │ └── wstester │ │ └── Main.java │ └── xml-resources │ └── web-service-references │ └── PriceAndSeats │ └── wsdl │ └── localhost_8084 │ └── TurkishAirlines │ ├── PriceAndSeats.wsdl │ └── PriceAndSeats.xsd_1.xsd └── README.md /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | -------------------------------------------------------------------------------- /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | # These are supported funding model platforms 2 | 3 | github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2] 4 | patreon: # Replace with a single Patreon username 5 | open_collective: # Replace with a single Open Collective username 6 | ko_fi: # Replace with a single Ko-fi username 7 | tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel 8 | community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry 9 | liberapay: # Replace with a single Liberapay username 10 | issuehunt: # Replace with a single IssueHunt username 11 | otechie: # Replace with a single Otechie username 12 | custom: https://www.cyfylabs.com 13 | -------------------------------------------------------------------------------- /Images/approve.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harismuneer/Flight-Booking-System-JavaServlets_App/140e66e2635b3139919ca69e22a0abdac6cc0ffd/Images/approve.png -------------------------------------------------------------------------------- /Images/book.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harismuneer/Flight-Booking-System-JavaServlets_App/140e66e2635b3139919ca69e22a0abdac6cc0ffd/Images/book.png -------------------------------------------------------------------------------- /Images/current.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harismuneer/Flight-Booking-System-JavaServlets_App/140e66e2635b3139919ca69e22a0abdac6cc0ffd/Images/current.png -------------------------------------------------------------------------------- /Images/features.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harismuneer/Flight-Booking-System-JavaServlets_App/140e66e2635b3139919ca69e22a0abdac6cc0ffd/Images/features.png -------------------------------------------------------------------------------- /Images/itenary.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harismuneer/Flight-Booking-System-JavaServlets_App/140e66e2635b3139919ca69e22a0abdac6cc0ffd/Images/itenary.png -------------------------------------------------------------------------------- /Images/login.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harismuneer/Flight-Booking-System-JavaServlets_App/140e66e2635b3139919ca69e22a0abdac6cc0ffd/Images/login.png -------------------------------------------------------------------------------- /Images/main.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harismuneer/Flight-Booking-System-JavaServlets_App/140e66e2635b3139919ca69e22a0abdac6cc0ffd/Images/main.png -------------------------------------------------------------------------------- /Images/main2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harismuneer/Flight-Booking-System-JavaServlets_App/140e66e2635b3139919ca69e22a0abdac6cc0ffd/Images/main2.png -------------------------------------------------------------------------------- /Images/tomcat-users-xml.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harismuneer/Flight-Booking-System-JavaServlets_App/140e66e2635b3139919ca69e22a0abdac6cc0ffd/Images/tomcat-users-xml.png -------------------------------------------------------------------------------- /Images/tomcat.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harismuneer/Flight-Booking-System-JavaServlets_App/140e66e2635b3139919ca69e22a0abdac6cc0ffd/Images/tomcat.png -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2018 harismuneer 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. -------------------------------------------------------------------------------- /Project/TurkishAirlines/Libs/commons-lang-2.6.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harismuneer/Flight-Booking-System-JavaServlets_App/140e66e2635b3139919ca69e22a0abdac6cc0ffd/Project/TurkishAirlines/Libs/commons-lang-2.6.jar -------------------------------------------------------------------------------- /Project/TurkishAirlines/Libs/commons-logging-1.1.1.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harismuneer/Flight-Booking-System-JavaServlets_App/140e66e2635b3139919ca69e22a0abdac6cc0ffd/Project/TurkishAirlines/Libs/commons-logging-1.1.1.jar -------------------------------------------------------------------------------- /Project/TurkishAirlines/Libs/gson-2.2.2.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harismuneer/Flight-Booking-System-JavaServlets_App/140e66e2635b3139919ca69e22a0abdac6cc0ffd/Project/TurkishAirlines/Libs/gson-2.2.2.jar -------------------------------------------------------------------------------- /Project/TurkishAirlines/Libs/hsqldb-2.3.1.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harismuneer/Flight-Booking-System-JavaServlets_App/140e66e2635b3139919ca69e22a0abdac6cc0ffd/Project/TurkishAirlines/Libs/hsqldb-2.3.1.jar -------------------------------------------------------------------------------- /Project/TurkishAirlines/Libs/jackcess-2.1.6.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harismuneer/Flight-Booking-System-JavaServlets_App/140e66e2635b3139919ca69e22a0abdac6cc0ffd/Project/TurkishAirlines/Libs/jackcess-2.1.6.jar -------------------------------------------------------------------------------- /Project/TurkishAirlines/Libs/javax.mail.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harismuneer/Flight-Booking-System-JavaServlets_App/140e66e2635b3139919ca69e22a0abdac6cc0ffd/Project/TurkishAirlines/Libs/javax.mail.jar -------------------------------------------------------------------------------- /Project/TurkishAirlines/Libs/ucanaccess-4.0.1.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harismuneer/Flight-Booking-System-JavaServlets_App/140e66e2635b3139919ca69e22a0abdac6cc0ffd/Project/TurkishAirlines/Libs/ucanaccess-4.0.1.jar -------------------------------------------------------------------------------- /Project/TurkishAirlines/build.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | Builds, tests, and runs the project TurkishAirlines. 12 | 13 | 71 | 72 | -------------------------------------------------------------------------------- /Project/TurkishAirlines/build/web/CurrentBooking.jsp: -------------------------------------------------------------------------------- 1 | 2 | <%@page import="models.Seat"%> 3 | <%@page import="java.util.ArrayList"%> 4 | <%@page contentType="text/html" pageEncoding="UTF-8"%> 5 | 6 | 7 | 8 | 9 | 10 | 11 | Current Booking 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 |



20 |

Current Bookings

21 |

22 |
23 | 24 |
25 | 26 | 27 |
28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | <% 42 | ArrayList seats = (ArrayList)(request.getAttribute("seats")); 43 | 44 | for (int i = 0; i < seats.size(); i++) 45 | { 46 | out.print(""); 47 | out.print(""); 48 | out.print(""); 49 | out.print(""); 50 | out.print(""); 51 | out.print(""); 52 | out.print(""); 53 | out.print(""); 54 | out.print(""); 55 | } 56 | %> 57 | 58 | 59 | 60 |
#FlightDeparture CityArrival CityDeparture DateArrival DateSeat Number
" + (i+1) + "" + seats.get(i).getFlight().getFlightName() + "" + seats.get(i).getFlight().getDepartureCity() + "" + seats.get(i).getFlight().getArrivalCity() + "" + seats.get(i).getFlight().getDepartureDate() + "" + seats.get(i).getFlight().getArrivalDate() + "" + seats.get(i).getSeatNumber() + "
61 | 62 |





63 | 64 |
65 |
66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | -------------------------------------------------------------------------------- /Project/TurkishAirlines/build/web/ErrorPage.jsp: -------------------------------------------------------------------------------- 1 | <%-- 2 | Document : ErrorPage 3 | Created on : Nov 7, 2017, 2:19:06 AM 4 | Author : MuhammadHarris 5 | --%> 6 | 7 | <%@page contentType="text/html" pageEncoding="UTF-8"%> 8 | 9 | 10 | 11 | 12 | Error Page 13 | 14 | 15 |

Sorry! Wrong ID or Password

16 | 17 | 18 | -------------------------------------------------------------------------------- /Project/TurkishAirlines/build/web/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | 3 | -------------------------------------------------------------------------------- /Project/TurkishAirlines/build/web/META-INF/context.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /Project/TurkishAirlines/build/web/ShowFlights.jsp: -------------------------------------------------------------------------------- 1 | 2 | <%@page import="models.Flight"%> 3 | <%@page import="models.Seat"%> 4 | <%@page import="java.util.ArrayList"%> 5 | <%@page contentType="text/html" pageEncoding="UTF-8"%> 6 | 7 | 8 | 9 | 10 | 11 | 12 | Show Flights 13 | 14 | 15 | 16 | 17 | 18 | 19 |



20 |

Your Itinery

21 |

22 | 23 | 24 |
25 | 26 | 27 |
28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | <% 41 | ArrayList results = (ArrayList)(request.getAttribute("results")); 42 | 43 | for (int i = 0; i < results.size(); i++) 44 | { 45 | out.print("
"); 46 | out.print("
"); 47 | out.print(""); 48 | out.print(""); 49 | out.print(""); 50 | out.print(""); 51 | out.print(""); 52 | out.print(""); 53 | out.print(""); 54 | out.print(""); 55 | out.print(""); 56 | } 57 | %> 58 | 59 | 60 | 61 |
FlightDeparture CityArrival CityDeparture DateArrival DateClass
62 |






63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | -------------------------------------------------------------------------------- /Project/TurkishAirlines/build/web/Templates/AdminHeader.jsp: -------------------------------------------------------------------------------- 1 | 2 |
3 | 9 |
10 | 11 | 12 | -------------------------------------------------------------------------------- /Project/TurkishAirlines/build/web/Templates/AdminPanel.jsp: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 |
5 | Change Features 6 | Set Seats 7 | Logout 8 |
9 |
10 | 11 | -------------------------------------------------------------------------------- /Project/TurkishAirlines/build/web/Templates/CustomerHeader.jsp: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 | 26 |
27 | -------------------------------------------------------------------------------- /Project/TurkishAirlines/build/web/Templates/Footer.jsp: -------------------------------------------------------------------------------- 1 | 2 |
3 |
Turkish Airlines 2017 © All Rights Reserved.
4 |

Web-site designed by Haris Muneer

5 | 6 |
7 | -------------------------------------------------------------------------------- /Project/TurkishAirlines/build/web/Templates/HeadMetaInfo.jsp: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /Project/TurkishAirlines/build/web/Templates/ManagerPanel.jsp: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 9 |
10 | 11 | -------------------------------------------------------------------------------- /Project/TurkishAirlines/build/web/WEB-INF/Login.jsp: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Login & Register 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |

Login to our site

38 |

Enter username and password to log on:

39 |
40 |
41 | 42 |
43 |
44 |
45 | 56 |
57 |
58 |
59 |
60 |
61 | 62 |
63 |
64 |
65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | -------------------------------------------------------------------------------- /Project/TurkishAirlines/build/web/WEB-INF/classes/.netbeans_automatic_build: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harismuneer/Flight-Booking-System-JavaServlets_App/140e66e2635b3139919ca69e22a0abdac6cc0ffd/Project/TurkishAirlines/build/web/WEB-INF/classes/.netbeans_automatic_build -------------------------------------------------------------------------------- /Project/TurkishAirlines/build/web/WEB-INF/classes/.netbeans_update_resources: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harismuneer/Flight-Booking-System-JavaServlets_App/140e66e2635b3139919ca69e22a0abdac6cc0ffd/Project/TurkishAirlines/build/web/WEB-INF/classes/.netbeans_update_resources -------------------------------------------------------------------------------- /Project/TurkishAirlines/build/web/WEB-INF/classes/CustomerManager.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harismuneer/Flight-Booking-System-JavaServlets_App/140e66e2635b3139919ca69e22a0abdac6cc0ffd/Project/TurkishAirlines/build/web/WEB-INF/classes/CustomerManager.class -------------------------------------------------------------------------------- /Project/TurkishAirlines/build/web/WEB-INF/classes/LoginManager.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harismuneer/Flight-Booking-System-JavaServlets_App/140e66e2635b3139919ca69e22a0abdac6cc0ffd/Project/TurkishAirlines/build/web/WEB-INF/classes/LoginManager.class -------------------------------------------------------------------------------- /Project/TurkishAirlines/build/web/WEB-INF/classes/LogoutManager.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harismuneer/Flight-Booking-System-JavaServlets_App/140e66e2635b3139919ca69e22a0abdac6cc0ffd/Project/TurkishAirlines/build/web/WEB-INF/classes/LogoutManager.class -------------------------------------------------------------------------------- /Project/TurkishAirlines/build/web/WEB-INF/classes/OriginCompleter.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harismuneer/Flight-Booking-System-JavaServlets_App/140e66e2635b3139919ca69e22a0abdac6cc0ffd/Project/TurkishAirlines/build/web/WEB-INF/classes/OriginCompleter.class -------------------------------------------------------------------------------- /Project/TurkishAirlines/build/web/WEB-INF/classes/SContextListener.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harismuneer/Flight-Booking-System-JavaServlets_App/140e66e2635b3139919ca69e22a0abdac6cc0ffd/Project/TurkishAirlines/build/web/WEB-INF/classes/SContextListener.class -------------------------------------------------------------------------------- /Project/TurkishAirlines/build/web/WEB-INF/classes/admin/ChangeFeatures.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harismuneer/Flight-Booking-System-JavaServlets_App/140e66e2635b3139919ca69e22a0abdac6cc0ffd/Project/TurkishAirlines/build/web/WEB-INF/classes/admin/ChangeFeatures.class -------------------------------------------------------------------------------- /Project/TurkishAirlines/build/web/WEB-INF/classes/admin/SetSeats.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harismuneer/Flight-Booking-System-JavaServlets_App/140e66e2635b3139919ca69e22a0abdac6cc0ffd/Project/TurkishAirlines/build/web/WEB-INF/classes/admin/SetSeats.class -------------------------------------------------------------------------------- /Project/TurkishAirlines/build/web/WEB-INF/classes/airlines.accdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harismuneer/Flight-Booking-System-JavaServlets_App/140e66e2635b3139919ca69e22a0abdac6cc0ffd/Project/TurkishAirlines/build/web/WEB-INF/classes/airlines.accdb -------------------------------------------------------------------------------- /Project/TurkishAirlines/build/web/WEB-INF/classes/customer/BookFlight.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harismuneer/Flight-Booking-System-JavaServlets_App/140e66e2635b3139919ca69e22a0abdac6cc0ffd/Project/TurkishAirlines/build/web/WEB-INF/classes/customer/BookFlight.class -------------------------------------------------------------------------------- /Project/TurkishAirlines/build/web/WEB-INF/classes/customer/ChooseFlight.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harismuneer/Flight-Booking-System-JavaServlets_App/140e66e2635b3139919ca69e22a0abdac6cc0ffd/Project/TurkishAirlines/build/web/WEB-INF/classes/customer/ChooseFlight.class -------------------------------------------------------------------------------- /Project/TurkishAirlines/build/web/WEB-INF/classes/customer/CurrentBooking.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harismuneer/Flight-Booking-System-JavaServlets_App/140e66e2635b3139919ca69e22a0abdac6cc0ffd/Project/TurkishAirlines/build/web/WEB-INF/classes/customer/CurrentBooking.class -------------------------------------------------------------------------------- /Project/TurkishAirlines/build/web/WEB-INF/classes/customer/SearchFlights.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harismuneer/Flight-Booking-System-JavaServlets_App/140e66e2635b3139919ca69e22a0abdac6cc0ffd/Project/TurkishAirlines/build/web/WEB-INF/classes/customer/SearchFlights.class -------------------------------------------------------------------------------- /Project/TurkishAirlines/build/web/WEB-INF/classes/filters/SecurityFilter.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harismuneer/Flight-Booking-System-JavaServlets_App/140e66e2635b3139919ca69e22a0abdac6cc0ffd/Project/TurkishAirlines/build/web/WEB-INF/classes/filters/SecurityFilter.class -------------------------------------------------------------------------------- /Project/TurkishAirlines/build/web/WEB-INF/classes/filters/XSSFilter.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harismuneer/Flight-Booking-System-JavaServlets_App/140e66e2635b3139919ca69e22a0abdac6cc0ffd/Project/TurkishAirlines/build/web/WEB-INF/classes/filters/XSSFilter.class -------------------------------------------------------------------------------- /Project/TurkishAirlines/build/web/WEB-INF/classes/filters/XSSRequestWrapper.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harismuneer/Flight-Booking-System-JavaServlets_App/140e66e2635b3139919ca69e22a0abdac6cc0ffd/Project/TurkishAirlines/build/web/WEB-INF/classes/filters/XSSRequestWrapper.class -------------------------------------------------------------------------------- /Project/TurkishAirlines/build/web/WEB-INF/classes/manager/ApproveFeatures.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harismuneer/Flight-Booking-System-JavaServlets_App/140e66e2635b3139919ca69e22a0abdac6cc0ffd/Project/TurkishAirlines/build/web/WEB-INF/classes/manager/ApproveFeatures.class -------------------------------------------------------------------------------- /Project/TurkishAirlines/build/web/WEB-INF/classes/manager/ApproveSeats.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harismuneer/Flight-Booking-System-JavaServlets_App/140e66e2635b3139919ca69e22a0abdac6cc0ffd/Project/TurkishAirlines/build/web/WEB-INF/classes/manager/ApproveSeats.class -------------------------------------------------------------------------------- /Project/TurkishAirlines/build/web/WEB-INF/classes/manager/DisapproveFeatures.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harismuneer/Flight-Booking-System-JavaServlets_App/140e66e2635b3139919ca69e22a0abdac6cc0ffd/Project/TurkishAirlines/build/web/WEB-INF/classes/manager/DisapproveFeatures.class -------------------------------------------------------------------------------- /Project/TurkishAirlines/build/web/WEB-INF/classes/manager/DisapproveSeats.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harismuneer/Flight-Booking-System-JavaServlets_App/140e66e2635b3139919ca69e22a0abdac6cc0ffd/Project/TurkishAirlines/build/web/WEB-INF/classes/manager/DisapproveSeats.class -------------------------------------------------------------------------------- /Project/TurkishAirlines/build/web/WEB-INF/classes/models/Customer.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harismuneer/Flight-Booking-System-JavaServlets_App/140e66e2635b3139919ca69e22a0abdac6cc0ffd/Project/TurkishAirlines/build/web/WEB-INF/classes/models/Customer.class -------------------------------------------------------------------------------- /Project/TurkishAirlines/build/web/WEB-INF/classes/models/Employee.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harismuneer/Flight-Booking-System-JavaServlets_App/140e66e2635b3139919ca69e22a0abdac6cc0ffd/Project/TurkishAirlines/build/web/WEB-INF/classes/models/Employee.class -------------------------------------------------------------------------------- /Project/TurkishAirlines/build/web/WEB-INF/classes/models/FBS.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harismuneer/Flight-Booking-System-JavaServlets_App/140e66e2635b3139919ca69e22a0abdac6cc0ffd/Project/TurkishAirlines/build/web/WEB-INF/classes/models/FBS.class -------------------------------------------------------------------------------- /Project/TurkishAirlines/build/web/WEB-INF/classes/models/Features.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harismuneer/Flight-Booking-System-JavaServlets_App/140e66e2635b3139919ca69e22a0abdac6cc0ffd/Project/TurkishAirlines/build/web/WEB-INF/classes/models/Features.class -------------------------------------------------------------------------------- /Project/TurkishAirlines/build/web/WEB-INF/classes/models/Flight.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harismuneer/Flight-Booking-System-JavaServlets_App/140e66e2635b3139919ca69e22a0abdac6cc0ffd/Project/TurkishAirlines/build/web/WEB-INF/classes/models/Flight.class -------------------------------------------------------------------------------- /Project/TurkishAirlines/build/web/WEB-INF/classes/models/Person.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harismuneer/Flight-Booking-System-JavaServlets_App/140e66e2635b3139919ca69e22a0abdac6cc0ffd/Project/TurkishAirlines/build/web/WEB-INF/classes/models/Person.class -------------------------------------------------------------------------------- /Project/TurkishAirlines/build/web/WEB-INF/classes/models/Seat.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harismuneer/Flight-Booking-System-JavaServlets_App/140e66e2635b3139919ca69e22a0abdac6cc0ffd/Project/TurkishAirlines/build/web/WEB-INF/classes/models/Seat.class -------------------------------------------------------------------------------- /Project/TurkishAirlines/build/web/WEB-INF/classes/webservices/PriceAndSeats.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harismuneer/Flight-Booking-System-JavaServlets_App/140e66e2635b3139919ca69e22a0abdac6cc0ffd/Project/TurkishAirlines/build/web/WEB-INF/classes/webservices/PriceAndSeats.class -------------------------------------------------------------------------------- /Project/TurkishAirlines/build/web/WEB-INF/lib/activation.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harismuneer/Flight-Booking-System-JavaServlets_App/140e66e2635b3139919ca69e22a0abdac6cc0ffd/Project/TurkishAirlines/build/web/WEB-INF/lib/activation.jar -------------------------------------------------------------------------------- /Project/TurkishAirlines/build/web/WEB-INF/lib/commons-lang-2.6.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harismuneer/Flight-Booking-System-JavaServlets_App/140e66e2635b3139919ca69e22a0abdac6cc0ffd/Project/TurkishAirlines/build/web/WEB-INF/lib/commons-lang-2.6.jar -------------------------------------------------------------------------------- /Project/TurkishAirlines/build/web/WEB-INF/lib/commons-logging-1.1.1.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harismuneer/Flight-Booking-System-JavaServlets_App/140e66e2635b3139919ca69e22a0abdac6cc0ffd/Project/TurkishAirlines/build/web/WEB-INF/lib/commons-logging-1.1.1.jar -------------------------------------------------------------------------------- /Project/TurkishAirlines/build/web/WEB-INF/lib/gson-2.2.2.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harismuneer/Flight-Booking-System-JavaServlets_App/140e66e2635b3139919ca69e22a0abdac6cc0ffd/Project/TurkishAirlines/build/web/WEB-INF/lib/gson-2.2.2.jar -------------------------------------------------------------------------------- /Project/TurkishAirlines/build/web/WEB-INF/lib/hsqldb-2.3.1.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harismuneer/Flight-Booking-System-JavaServlets_App/140e66e2635b3139919ca69e22a0abdac6cc0ffd/Project/TurkishAirlines/build/web/WEB-INF/lib/hsqldb-2.3.1.jar -------------------------------------------------------------------------------- /Project/TurkishAirlines/build/web/WEB-INF/lib/jackcess-2.1.6.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harismuneer/Flight-Booking-System-JavaServlets_App/140e66e2635b3139919ca69e22a0abdac6cc0ffd/Project/TurkishAirlines/build/web/WEB-INF/lib/jackcess-2.1.6.jar -------------------------------------------------------------------------------- /Project/TurkishAirlines/build/web/WEB-INF/lib/javax.mail.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harismuneer/Flight-Booking-System-JavaServlets_App/140e66e2635b3139919ca69e22a0abdac6cc0ffd/Project/TurkishAirlines/build/web/WEB-INF/lib/javax.mail.jar -------------------------------------------------------------------------------- /Project/TurkishAirlines/build/web/WEB-INF/lib/ucanaccess-4.0.1.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harismuneer/Flight-Booking-System-JavaServlets_App/140e66e2635b3139919ca69e22a0abdac6cc0ffd/Project/TurkishAirlines/build/web/WEB-INF/lib/ucanaccess-4.0.1.jar -------------------------------------------------------------------------------- /Project/TurkishAirlines/build/web/WEB-INF/lib/webservices-api.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harismuneer/Flight-Booking-System-JavaServlets_App/140e66e2635b3139919ca69e22a0abdac6cc0ffd/Project/TurkishAirlines/build/web/WEB-INF/lib/webservices-api.jar -------------------------------------------------------------------------------- /Project/TurkishAirlines/build/web/WEB-INF/lib/webservices-extra-api.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harismuneer/Flight-Booking-System-JavaServlets_App/140e66e2635b3139919ca69e22a0abdac6cc0ffd/Project/TurkishAirlines/build/web/WEB-INF/lib/webservices-extra-api.jar -------------------------------------------------------------------------------- /Project/TurkishAirlines/build/web/WEB-INF/lib/webservices-extra.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harismuneer/Flight-Booking-System-JavaServlets_App/140e66e2635b3139919ca69e22a0abdac6cc0ffd/Project/TurkishAirlines/build/web/WEB-INF/lib/webservices-extra.jar -------------------------------------------------------------------------------- /Project/TurkishAirlines/build/web/WEB-INF/lib/webservices-rt.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harismuneer/Flight-Booking-System-JavaServlets_App/140e66e2635b3139919ca69e22a0abdac6cc0ffd/Project/TurkishAirlines/build/web/WEB-INF/lib/webservices-rt.jar -------------------------------------------------------------------------------- /Project/TurkishAirlines/build/web/WEB-INF/lib/webservices-tools.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harismuneer/Flight-Booking-System-JavaServlets_App/140e66e2635b3139919ca69e22a0abdac6cc0ffd/Project/TurkishAirlines/build/web/WEB-INF/lib/webservices-tools.jar -------------------------------------------------------------------------------- /Project/TurkishAirlines/build/web/WEB-INF/sun-jaxws.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /Project/TurkishAirlines/build/web/assets/autocompleter.js: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | $(document).ready(function() { 5 | $(function() { 6 | $("#osearch").autocomplete({ 7 | source : function(request, response) { 8 | $.ajax({ 9 | url : "OriginCompleter", 10 | type : "GET", 11 | data : { 12 | term : request.term 13 | }, 14 | dataType : "json", 15 | success : function(data) { 16 | response(data); 17 | } 18 | }); 19 | } 20 | }); 21 | }); 22 | }); 23 | 24 | 25 | $(document).ready(function() { 26 | $(function() { 27 | $("#dsearch").autocomplete({ 28 | source : function(request, response) { 29 | $.ajax({ 30 | url : "OriginCompleter", 31 | type : "GET", 32 | data : { 33 | term : request.term 34 | }, 35 | dataType : "json", 36 | success : function(data) { 37 | response(data); 38 | } 39 | }); 40 | } 41 | }); 42 | }); 43 | }); -------------------------------------------------------------------------------- /Project/TurkishAirlines/build/web/assets/css/carousel.css: -------------------------------------------------------------------------------- 1 | /* GLOBAL STYLES 2 | -------------------------------------------------- */ 3 | /* Padding below the footer and lighter body text */ 4 | 5 | body { 6 | padding-top: 3rem; 7 | padding-bottom: 3rem; 8 | color: #5a5a5a; 9 | } 10 | 11 | 12 | /* CUSTOMIZE THE CAROUSEL 13 | -------------------------------------------------- */ 14 | 15 | /* Carousel base class */ 16 | .carousel { 17 | margin-bottom: 4rem; 18 | } 19 | /* Since positioning the image, we need to help out the caption */ 20 | .carousel-caption { 21 | z-index: 10; 22 | bottom: 3rem; 23 | } 24 | 25 | /* Declare heights because of positioning of img element */ 26 | .carousel-item { 27 | height: 32rem; 28 | background-color: #777; 29 | } 30 | .carousel-item > img { 31 | position: absolute; 32 | top: 0; 33 | left: 0; 34 | min-width: 100%; 35 | height: 32rem; 36 | } 37 | 38 | 39 | /* MARKETING CONTENT 40 | -------------------------------------------------- */ 41 | 42 | /* Center align the text within the three columns below the carousel */ 43 | .marketing .col-lg-4 { 44 | margin-bottom: 1.5rem; 45 | text-align: center; 46 | } 47 | .marketing h2 { 48 | font-weight: normal; 49 | } 50 | .marketing .col-lg-4 p { 51 | margin-right: .75rem; 52 | margin-left: .75rem; 53 | } 54 | 55 | 56 | /* Featurettes 57 | ------------------------- */ 58 | 59 | .featurette-divider { 60 | margin: 5rem 0; /* Space out the Bootstrap
more */ 61 | } 62 | 63 | /* Thin out the marketing headings */ 64 | .featurette-heading { 65 | font-weight: 300; 66 | line-height: 1; 67 | letter-spacing: -.05rem; 68 | } 69 | 70 | 71 | /* RESPONSIVE CSS 72 | -------------------------------------------------- */ 73 | 74 | @media (min-width: 40em) { 75 | /* Bump up size of carousel content */ 76 | .carousel-caption p { 77 | margin-bottom: 1.25rem; 78 | font-size: 1.25rem; 79 | line-height: 1.4; 80 | } 81 | 82 | .featurette-heading { 83 | font-size: 50px; 84 | } 85 | } 86 | 87 | @media (min-width: 62em) { 88 | .featurette-heading { 89 | margin-top: 7rem; 90 | } 91 | } 92 | -------------------------------------------------------------------------------- /Project/TurkishAirlines/build/web/assets/css/form-elements.css: -------------------------------------------------------------------------------- 1 | 2 | input[type="text"], 3 | input[type="password"], 4 | textarea, 5 | textarea.form-control { 6 | height: 50px; 7 | margin: 0; 8 | padding: 0 20px; 9 | vertical-align: middle; 10 | background: #fff; 11 | border: 3px solid #fff; 12 | font-family: 'Roboto', sans-serif; 13 | font-size: 16px; 14 | font-weight: 300; 15 | line-height: 50px; 16 | color: #888; 17 | -moz-border-radius: 4px; -webkit-border-radius: 4px; border-radius: 4px; 18 | -moz-box-shadow: none; -webkit-box-shadow: none; box-shadow: none; 19 | -o-transition: all .3s; -moz-transition: all .3s; -webkit-transition: all .3s; -ms-transition: all .3s; transition: all .3s; 20 | } 21 | 22 | textarea, 23 | textarea.form-control { 24 | padding-top: 10px; 25 | padding-bottom: 10px; 26 | line-height: 30px; 27 | } 28 | 29 | input[type="text"]:focus, 30 | input[type="password"]:focus, 31 | textarea:focus, 32 | textarea.form-control:focus { 33 | outline: 0; 34 | background: #fff; 35 | border: 3px solid #fff; 36 | -moz-box-shadow: none; -webkit-box-shadow: none; box-shadow: none; 37 | } 38 | 39 | input[type="text"]:-moz-placeholder, input[type="password"]:-moz-placeholder, 40 | textarea:-moz-placeholder, textarea.form-control:-moz-placeholder { color: #888; } 41 | 42 | input[type="text"]:-ms-input-placeholder, input[type="password"]:-ms-input-placeholder, 43 | textarea:-ms-input-placeholder, textarea.form-control:-ms-input-placeholder { color: #888; } 44 | 45 | input[type="text"]::-webkit-input-placeholder, input[type="password"]::-webkit-input-placeholder, 46 | textarea::-webkit-input-placeholder, textarea.form-control::-webkit-input-placeholder { color: #888; } 47 | 48 | 49 | 50 | button.btn { 51 | height: 50px; 52 | margin: 0; 53 | padding: 0 20px; 54 | vertical-align: middle; 55 | background: #19b9e7; 56 | border: 0; 57 | font-family: 'Roboto', sans-serif; 58 | font-size: 16px; 59 | font-weight: 300; 60 | line-height: 50px; 61 | color: #fff; 62 | -moz-border-radius: 4px; -webkit-border-radius: 4px; border-radius: 4px; 63 | text-shadow: none; 64 | -moz-box-shadow: none; -webkit-box-shadow: none; box-shadow: none; 65 | -o-transition: all .3s; -moz-transition: all .3s; -webkit-transition: all .3s; -ms-transition: all .3s; transition: all .3s; 66 | } 67 | 68 | button.btn:hover { opacity: 0.6; color: #fff; } 69 | 70 | button.btn:active { outline: 0; opacity: 0.6; color: #fff; -moz-box-shadow: none; -webkit-box-shadow: none; box-shadow: none; } 71 | 72 | button.btn:focus { outline: 0; opacity: 0.6; background: #19b9e7; color: #fff; } 73 | 74 | button.btn:active:focus, button.btn.active:focus { outline: 0; opacity: 0.6; background: #19b9e7; color: #fff; } 75 | -------------------------------------------------------------------------------- /Project/TurkishAirlines/build/web/assets/img/dashboard.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harismuneer/Flight-Booking-System-JavaServlets_App/140e66e2635b3139919ca69e22a0abdac6cc0ffd/Project/TurkishAirlines/build/web/assets/img/dashboard.jpg -------------------------------------------------------------------------------- /Project/TurkishAirlines/build/web/assets/img/galaxy.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harismuneer/Flight-Booking-System-JavaServlets_App/140e66e2635b3139919ca69e22a0abdac6cc0ffd/Project/TurkishAirlines/build/web/assets/img/galaxy.jpg -------------------------------------------------------------------------------- /Project/TurkishAirlines/build/web/assets/img/itinerary.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harismuneer/Flight-Booking-System-JavaServlets_App/140e66e2635b3139919ca69e22a0abdac6cc0ffd/Project/TurkishAirlines/build/web/assets/img/itinerary.jpg -------------------------------------------------------------------------------- /Project/TurkishAirlines/build/web/assets/img/main.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harismuneer/Flight-Booking-System-JavaServlets_App/140e66e2635b3139919ca69e22a0abdac6cc0ffd/Project/TurkishAirlines/build/web/assets/img/main.jpg -------------------------------------------------------------------------------- /Project/TurkishAirlines/build/web/assets/img/milky.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harismuneer/Flight-Booking-System-JavaServlets_App/140e66e2635b3139919ca69e22a0abdac6cc0ffd/Project/TurkishAirlines/build/web/assets/img/milky.jpg -------------------------------------------------------------------------------- /Project/TurkishAirlines/build/web/assets/img/nav.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harismuneer/Flight-Booking-System-JavaServlets_App/140e66e2635b3139919ca69e22a0abdac6cc0ffd/Project/TurkishAirlines/build/web/assets/img/nav.jpg -------------------------------------------------------------------------------- /Project/TurkishAirlines/build/web/assets/img/sign.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harismuneer/Flight-Booking-System-JavaServlets_App/140e66e2635b3139919ca69e22a0abdac6cc0ffd/Project/TurkishAirlines/build/web/assets/img/sign.jpg -------------------------------------------------------------------------------- /Project/TurkishAirlines/build/web/assets/img/status.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harismuneer/Flight-Booking-System-JavaServlets_App/140e66e2635b3139919ca69e22a0abdac6cc0ffd/Project/TurkishAirlines/build/web/assets/img/status.jpg -------------------------------------------------------------------------------- /Project/TurkishAirlines/build/web/assets/js/jquery.backstretch.min.js: -------------------------------------------------------------------------------- 1 | /*! Backstretch - v2.0.4 - 2013-06-19 2 | * http://srobbin.com/jquery-plugins/backstretch/ 3 | * Copyright (c) 2013 Scott Robbin; Licensed MIT */ 4 | (function(a,d,p){a.fn.backstretch=function(c,b){(c===p||0===c.length)&&a.error("No images were supplied for Backstretch");0===a(d).scrollTop()&&d.scrollTo(0,0);return this.each(function(){var d=a(this),g=d.data("backstretch");if(g){if("string"==typeof c&&"function"==typeof g[c]){g[c](b);return}b=a.extend(g.options,b);g.destroy(!0)}g=new q(this,c,b);d.data("backstretch",g)})};a.backstretch=function(c,b){return a("body").backstretch(c,b).data("backstretch")};a.expr[":"].backstretch=function(c){return a(c).data("backstretch")!==p};a.fn.backstretch.defaults={centeredX:!0,centeredY:!0,duration:5E3,fade:0};var r={left:0,top:0,overflow:"hidden",margin:0,padding:0,height:"100%",width:"100%",zIndex:-999999},s={position:"absolute",display:"none",margin:0,padding:0,border:"none",width:"auto",height:"auto",maxHeight:"none",maxWidth:"none",zIndex:-999999},q=function(c,b,e){this.options=a.extend({},a.fn.backstretch.defaults,e||{});this.images=a.isArray(b)?b:[b];a.each(this.images,function(){a("")[0].src=this});this.isBody=c===document.body;this.$container=a(c);this.$root=this.isBody?l?a(d):a(document):this.$container;c=this.$container.children(".backstretch").first();this.$wrap=c.length?c:a('
').css(r).appendTo(this.$container);this.isBody||(c=this.$container.css("position"),b=this.$container.css("zIndex"),this.$container.css({position:"static"===c?"relative":c,zIndex:"auto"===b?0:b,background:"none"}),this.$wrap.css({zIndex:-999998}));this.$wrap.css({position:this.isBody&&l?"fixed":"absolute"});this.index=0;this.show(this.index);a(d).on("resize.backstretch",a.proxy(this.resize,this)).on("orientationchange.backstretch",a.proxy(function(){this.isBody&&0===d.pageYOffset&&(d.scrollTo(0,1),this.resize())},this))};q.prototype={resize:function(){try{var a={left:0,top:0},b=this.isBody?this.$root.width():this.$root.innerWidth(),e=b,g=this.isBody?d.innerHeight?d.innerHeight:this.$root.height():this.$root.innerHeight(),j=e/this.$img.data("ratio"),f;j>=g?(f=(j-g)/2,this.options.centeredY&&(a.top="-"+f+"px")):(j=g,e=j*this.$img.data("ratio"),f=(e-b)/2,this.options.centeredX&&(a.left="-"+f+"px"));this.$wrap.css({width:b,height:g}).find("img:not(.deleteable)").css({width:e,height:j}).css(a)}catch(h){}return this},show:function(c){if(!(Math.abs(c)>this.images.length-1)){var b=this,e=b.$wrap.find("img").addClass("deleteable"),d={relatedTarget:b.$container[0]};b.$container.trigger(a.Event("backstretch.before",d),[b,c]);this.index=c;clearInterval(b.interval);b.$img=a("").css(s).bind("load",function(f){var h=this.width||a(f.target).width();f=this.height||a(f.target).height();a(this).data("ratio",h/f);a(this).fadeIn(b.options.speed||b.options.fade,function(){e.remove();b.paused||b.cycle();a(["after","show"]).each(function(){b.$container.trigger(a.Event("backstretch."+this,d),[b,c])})});b.resize()}).appendTo(b.$wrap);b.$img.attr("src",b.images[c]);return b}},next:function(){return this.show(this.indexe||d.operamini&&"[object OperaMini]"==={}.toString.call(d.operamini)||n&&7458>t||-1e||h&&6>h||"palmGetResource"in d&&e&&534>e||-1=k)})(jQuery,window); -------------------------------------------------------------------------------- /Project/TurkishAirlines/build/web/assets/js/placeholder.js: -------------------------------------------------------------------------------- 1 | 2 | $(document).ready(function(){ 3 | 4 | $('input[type="text"], input[type="password"], textarea').each(function() { 5 | $(this).val( $(this).attr('placeholder') ); 6 | }); 7 | 8 | }); -------------------------------------------------------------------------------- /Project/TurkishAirlines/build/web/assets/js/scripts.js: -------------------------------------------------------------------------------- 1 | 2 | jQuery(document).ready(function() { 3 | 4 | /* 5 | Fullscreen background 6 | */ 7 | $.backstretch("assets/img/backgrounds/1.jpg"); 8 | 9 | /* 10 | Login form validation 11 | */ 12 | $('.login-form input[type="text"], .login-form input[type="password"], .login-form textarea').on('focus', function() { 13 | $(this).removeClass('input-error'); 14 | }); 15 | 16 | $('.login-form').on('submit', function(e) { 17 | 18 | $(this).find('input[type="text"], input[type="password"], textarea').each(function(){ 19 | if( $(this).val() == "" ) { 20 | e.preventDefault(); 21 | $(this).addClass('input-error'); 22 | } 23 | else { 24 | $(this).removeClass('input-error'); 25 | } 26 | }); 27 | 28 | }); 29 | 30 | /* 31 | Registration form validation 32 | */ 33 | $('.registration-form input[type="text"], .registration-form textarea').on('focus', function() { 34 | $(this).removeClass('input-error'); 35 | }); 36 | 37 | $('.registration-form').on('submit', function(e) { 38 | 39 | $(this).find('input[type="text"], textarea').each(function(){ 40 | if( $(this).val() == "" ) { 41 | e.preventDefault(); 42 | $(this).addClass('input-error'); 43 | } 44 | else { 45 | $(this).removeClass('input-error'); 46 | } 47 | }); 48 | 49 | }); 50 | 51 | 52 | }); 53 | -------------------------------------------------------------------------------- /Project/TurkishAirlines/nbproject/ant-deploy.xml: -------------------------------------------------------------------------------- 1 | 2 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 64 | 67 | 68 | 69 | 70 | 71 | 73 | 75 | 76 | 77 | -------------------------------------------------------------------------------- /Project/TurkishAirlines/nbproject/genfiles.properties: -------------------------------------------------------------------------------- 1 | build.xml.data.CRC32=29302720 2 | build.xml.script.CRC32=7f9030ea 3 | build.xml.stylesheet.CRC32=651128d4@1.77.1.1 4 | # This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. 5 | # Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. 6 | nbproject/build-impl.xml.data.CRC32=29302720 7 | nbproject/build-impl.xml.script.CRC32=ee012ec6 8 | nbproject/build-impl.xml.stylesheet.CRC32=99ea4b56@1.77.1.1 9 | nbproject/jaxws-build.xml.stylesheet.CRC32=6608c2cf 10 | -------------------------------------------------------------------------------- /Project/TurkishAirlines/nbproject/jax-ws.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | webservices.PriceAndSeats 6 | 7 | 8 | 9 | false 10 | 11 | -------------------------------------------------------------------------------- /Project/TurkishAirlines/nbproject/jaxws-build.xml: -------------------------------------------------------------------------------- 1 | 8 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 35 | 36 | -------------------------------------------------------------------------------- /Project/TurkishAirlines/nbproject/private/private.properties: -------------------------------------------------------------------------------- 1 | deploy.ant.properties.file=C:\\Users\\PAKLAP.pk\\AppData\\Roaming\\NetBeans\\8.2\\tomcat80.properties 2 | j2ee.server.domain=C:/Users/PAKLAP.pk/AppData/Roaming/NetBeans/8.2/apache-tomcat-8.0.27.0_base 3 | j2ee.server.home=C:/Program Files/Apache Software Foundation/Apache Tomcat 8.0.27 4 | j2ee.server.instance=tomcat80:home=C:\\Program Files\\Apache Software Foundation\\Apache Tomcat 8.0.27:base=apache-tomcat-8.0.27.0_base 5 | javac.debug=true 6 | javadoc.preview=true 7 | selected.browser=Chrome 8 | user.properties.file=C:\\Users\\PAKLAP.pk\\AppData\\Roaming\\NetBeans\\8.2\\build.properties 9 | -------------------------------------------------------------------------------- /Project/TurkishAirlines/nbproject/private/private.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | file:/D:/FAST/5th%20Semester%20%20%20%20(Fall%202017)/Web%20Programming/Project/Flight%20Booking%20System/Project/TurkishAirlines/src/java/customer/ChooseFlight.java 7 | file:/D:/FAST/5th%20Semester%20%20%20%20(Fall%202017)/Web%20Programming/Project/Flight%20Booking%20System/Project/TurkishAirlines/web/ShowItinery.jsp 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Project/TurkishAirlines/nbproject/project.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | org.netbeans.modules.web.project 4 | 5 | 6 | 7 | 8 | 9 | TurkishAirlines 10 | 1.6.5 11 | 12 | 13 | ${libs.metro.classpath} 14 | WEB-INF/lib 15 | 16 | 17 | ${file.reference.commons-lang-2.6.jar} 18 | WEB-INF/lib 19 | 20 | 21 | ${file.reference.commons-logging-1.1.1.jar} 22 | WEB-INF/lib 23 | 24 | 25 | ${file.reference.hsqldb-2.3.1.jar} 26 | WEB-INF/lib 27 | 28 | 29 | ${file.reference.jackcess-2.1.6.jar} 30 | WEB-INF/lib 31 | 32 | 33 | ${file.reference.ucanaccess-4.0.1.jar} 34 | WEB-INF/lib 35 | 36 | 37 | ${file.reference.gson-2.2.2.jar} 38 | WEB-INF/lib 39 | 40 | 41 | ${file.reference.javax.mail.jar} 42 | WEB-INF/lib 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | -------------------------------------------------------------------------------- /Project/TurkishAirlines/src/conf/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | 3 | -------------------------------------------------------------------------------- /Project/TurkishAirlines/src/java/CustomerManager.java: -------------------------------------------------------------------------------- 1 | /* 2 | * To change this license header, choose License Headers in Project Properties. 3 | * To change this template file, choose Tools | Templates 4 | * and open the template in the editor. 5 | */ 6 | 7 | import models.Customer; 8 | import models.FBS; 9 | import java.io.IOException; 10 | import java.sql.Connection; 11 | import java.util.ArrayList; 12 | import javax.servlet.ServletException; 13 | import javax.servlet.http.HttpServlet; 14 | import javax.servlet.http.HttpServletRequest; 15 | import javax.servlet.http.HttpServletResponse; 16 | import javax.servlet.http.HttpSession; 17 | 18 | /** 19 | * 20 | * @author MuhammadHarris 21 | */ 22 | public class CustomerManager extends HttpServlet { 23 | 24 | @Override 25 | protected void doGet(HttpServletRequest request, HttpServletResponse response) 26 | throws ServletException, IOException { 27 | 28 | if (request.getSession().getAttribute("customer") == null){ 29 | 30 | HttpSession s = request.getSession(); 31 | String customerEmail = request.getRemoteUser(); 32 | 33 | ArrayList c = (ArrayList)(getServletContext().getAttribute("customers")); 34 | 35 | for(int i = 0; i < c.size(); i++) 36 | { 37 | if (c.get(i).getEmail().equals(customerEmail)) 38 | { 39 | s.setAttribute("customer", c.get(i)); 40 | break; 41 | } 42 | } 43 | 44 | } 45 | String uri = request.getRequestURI(); 46 | String page = uri.split("/")[2]; 47 | page = page.split(".jsp")[0] + ".jsp"; 48 | 49 | request.getRequestDispatcher(page).forward(request,response); 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /Project/TurkishAirlines/src/java/LoginManager.java: -------------------------------------------------------------------------------- 1 | /* 2 | * To change this license header, choose License Headers in Project Properties. 3 | * To change this template file, choose Tools | Templates 4 | * and open the template in the editor. 5 | */ 6 | 7 | import models.Customer; 8 | import models.FBS; 9 | import java.io.IOException; 10 | import java.sql.Connection; 11 | import java.util.ArrayList; 12 | import javax.servlet.ServletException; 13 | import javax.servlet.http.HttpServlet; 14 | import javax.servlet.http.HttpServletRequest; 15 | import javax.servlet.http.HttpServletResponse; 16 | import javax.servlet.http.HttpSession; 17 | 18 | /** 19 | * 20 | * @author MuhammadHarris 21 | */ 22 | public class LoginManager extends HttpServlet { 23 | 24 | @Override 25 | protected void doGet(HttpServletRequest request, HttpServletResponse response) 26 | throws ServletException, IOException { 27 | 28 | if(request.isUserInRole("Admin")) 29 | { 30 | response.sendRedirect("ChangeFeatures.jsp"); 31 | } 32 | else if(request.isUserInRole("Manager")) 33 | { 34 | response.sendRedirect("ApproveFeatures.jsp"); 35 | } 36 | else if(request.isUserInRole("Customer")) 37 | { 38 | if (request.getSession().getAttribute("customer") == null){ 39 | HttpSession s = request.getSession(); 40 | String customerEmail = request.getRemoteUser(); 41 | 42 | ArrayList c = (ArrayList)(getServletContext().getAttribute("customers")); 43 | 44 | for(int i = 0; i < c.size(); i++) 45 | { 46 | if (c.get(i).getEmail().equals(customerEmail)) 47 | { 48 | s.setAttribute("customer", c.get(i)); 49 | break; 50 | } 51 | } 52 | } 53 | 54 | request.getRequestDispatcher("CurrentBooking.do").forward(request, response); 55 | } 56 | else 57 | response.sendRedirect("home.jsp"); 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /Project/TurkishAirlines/src/java/LogoutManager.java: -------------------------------------------------------------------------------- 1 | /* 2 | * To change this license header, choose License Headers in Project Properties. 3 | * To change this template file, choose Tools | Templates 4 | * and open the template in the editor. 5 | */ 6 | 7 | import java.io.IOException; 8 | import javax.servlet.ServletException; 9 | import javax.servlet.http.HttpServlet; 10 | import javax.servlet.http.HttpServletRequest; 11 | import javax.servlet.http.HttpServletResponse; 12 | 13 | /** 14 | * 15 | * @author MuhammadHarris 16 | */ 17 | public class LogoutManager extends HttpServlet { 18 | 19 | @Override 20 | protected void doGet(HttpServletRequest request, HttpServletResponse response) 21 | throws ServletException, IOException { 22 | 23 | request.getSession().invalidate(); 24 | 25 | response.sendRedirect("home.jsp"); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /Project/TurkishAirlines/src/java/OriginCompleter.java: -------------------------------------------------------------------------------- 1 | import com.google.gson.Gson; 2 | import java.util.ArrayList; 3 | import javax.servlet.ServletContext; 4 | import javax.servlet.http.HttpServlet; 5 | import javax.servlet.http.HttpServletRequest; 6 | import javax.servlet.http.HttpServletResponse; 7 | import java.sql.Connection; 8 | 9 | import models.FBS; 10 | 11 | public class OriginCompleter extends HttpServlet 12 | { 13 | 14 | @Override 15 | protected void doGet(HttpServletRequest request, HttpServletResponse response) 16 | { 17 | response.setContentType("application/json"); 18 | 19 | try 20 | { 21 | ServletContext sc = getServletContext(); 22 | 23 | String term = request.getParameter("term"); 24 | 25 | ArrayList list = ((FBS) (sc.getAttribute("fbs"))).getCities((Connection) sc.getAttribute("con"), term); 26 | 27 | String searchList = new Gson().toJson(list); 28 | 29 | response.getWriter().write(searchList); 30 | } 31 | catch (Exception e) 32 | { 33 | System.err.println(e.getMessage()); 34 | } 35 | } 36 | 37 | 38 | } -------------------------------------------------------------------------------- /Project/TurkishAirlines/src/java/SContextListener.java: -------------------------------------------------------------------------------- 1 | import java.io.File; 2 | import java.net.URISyntaxException; 3 | import models.Customer; 4 | import models.FBS; 5 | import models.Features; 6 | import models.Flight; 7 | import javax.servlet.ServletContextEvent; 8 | import javax.servlet.ServletContextListener; 9 | 10 | import java.sql.Connection; 11 | import java.sql.DriverManager; 12 | import java.sql.SQLException; 13 | import java.util.ArrayList; 14 | import java.util.logging.Level; 15 | import java.util.logging.Logger; 16 | import javax.servlet.ServletContext; 17 | 18 | 19 | public class SContextListener implements ServletContextListener 20 | { 21 | 22 | @Override 23 | public void contextInitialized(ServletContextEvent event) 24 | { 25 | 26 | ServletContext sc = event.getServletContext(); 27 | 28 | //get db path 29 | String p = ""; 30 | 31 | try 32 | { 33 | p = new File(getClass().getProtectionDomain().getCodeSource().getLocation().toURI()).getPath() + "\\airlines.accdb"; 34 | } 35 | catch (URISyntaxException ex) 36 | { 37 | System.out.println("Error loading database file."); 38 | } 39 | 40 | String host = "jdbc:ucanaccess://" + p; 41 | 42 | // Step 1: Loading or registering Oracle JDBC driver class 43 | try { 44 | 45 | Class.forName("net.ucanaccess.jdbc.UcanaccessDriver"); 46 | } 47 | catch(ClassNotFoundException cnfex) { 48 | 49 | System.out.println("Problem in loading or " 50 | + "registering MS Access JDBC driver"); 51 | cnfex.printStackTrace(); 52 | } 53 | 54 | try 55 | { 56 | Connection con = DriverManager.getConnection(host); 57 | 58 | sc.setAttribute("con", con); 59 | 60 | FBS fbs = new FBS(); 61 | 62 | ArrayList f = fbs.populateFeatures(con); 63 | ArrayList customers = fbs.populateCustomers(con); 64 | ArrayList flights = fbs.getAllFlights(con,customers,f); 65 | 66 | sc.setAttribute("features",f); 67 | sc.setAttribute("fbs",fbs); 68 | sc.setAttribute("flights", flights); 69 | sc.setAttribute("customers", customers); 70 | } 71 | 72 | catch (SQLException ex) 73 | { 74 | Logger.getLogger(SContextListener.class.getName()).log(Level.SEVERE, null, ex); 75 | System.out.println("Context Listener: " + ex.getMessage()); 76 | } 77 | } 78 | 79 | 80 | 81 | @Override 82 | public void contextDestroyed(ServletContextEvent sce) 83 | { 84 | System.out.println("Context Destroyed!!!!!!!!!"); 85 | } 86 | } 87 | -------------------------------------------------------------------------------- /Project/TurkishAirlines/src/java/admin/ChangeFeatures.java: -------------------------------------------------------------------------------- 1 | package admin; 2 | 3 | /* 4 | * To change this license header, choose License Headers in Project Properties. 5 | * To change this template file, choose Tools | Templates 6 | * and open the template in the editor. 7 | */ 8 | 9 | import models.Features; 10 | import java.io.IOException; 11 | import java.util.ArrayList; 12 | import javax.servlet.ServletException; 13 | import javax.servlet.http.HttpServlet; 14 | import javax.servlet.http.HttpServletRequest; 15 | import javax.servlet.http.HttpServletResponse; 16 | 17 | /** 18 | * 19 | * @author MuhammadHarris 20 | */ 21 | public class ChangeFeatures extends HttpServlet { 22 | 23 | 24 | @Override 25 | protected void doPost(HttpServletRequest request, HttpServletResponse response) 26 | throws ServletException, IOException { 27 | 28 | ArrayList f = (ArrayList) (getServletContext().getAttribute("features")); 29 | 30 | char[] s = {'e','b','f'}; 31 | 32 | 33 | for (int i = 0; i < 3; i++) 34 | { 35 | //Saving old values 36 | (f.get(i)).setNewSeatPitch( f.get(i).getSeatPitch() ); 37 | (f.get(i)).setNewSeatWidth( f.get(i).getSeatWidth() ); 38 | (f.get(i)).setNewVideoType( f.get(i).getVideoType() ); 39 | (f.get(i)).setNewPowerType( f.get(i).getPowerType() ); 40 | (f.get(i)).setNewSeatType( f.get(i).getSeatType() ); 41 | (f.get(i)).setNewPrice( f.get(i).getPrice() ); 42 | 43 | //Setting new values temporarily 44 | (f.get(i)).setSeatPitch( (Double.parseDouble(request.getParameter("seat_pitch_" + s[i]))) ); 45 | (f.get(i)).setSeatWidth( (Double.parseDouble(request.getParameter("seat_width_" + s[i]))) ); 46 | (f.get(i)).setVideoType( (request.getParameter("video_" + s[i])) ); 47 | (f.get(i)).setPowerType( (request.getParameter("power_" + s[i])) ); 48 | (f.get(i)).setSeatType ( (request.getParameter("seat_type_" + s[i])) ); 49 | (f.get(i)).setPrice ( Integer.parseInt(request.getParameter("price_" + s[i])) ); 50 | 51 | } 52 | 53 | f.get(1).setNewWifi( f.get(1).getWifi()); 54 | f.get(2).setNewWifi( f.get(2).getWifi()); 55 | 56 | f.get(1).setWifi( request.getParameter("wifi_b")); 57 | f.get(2).setWifi( request.getParameter("wifi_f")); 58 | 59 | f.get(2).setNewSpecialFood(f.get(2).getSpecialFood()); 60 | f.get(2).setSpecialFood( request.getParameter("special_food_f")); 61 | 62 | Features.isChanged = true; 63 | 64 | response.sendRedirect("ChangeFeatures.jsp"); 65 | } 66 | 67 | 68 | } 69 | -------------------------------------------------------------------------------- /Project/TurkishAirlines/src/java/admin/SetSeats.java: -------------------------------------------------------------------------------- 1 | package admin; 2 | 3 | /* 4 | * To change this license header, choose License Headers in Project Properties. 5 | * To change this template file, choose Tools | Templates 6 | * and open the template in the editor. 7 | */ 8 | 9 | import models.Flight; 10 | import java.io.IOException; 11 | import java.util.ArrayList; 12 | import javax.servlet.ServletException; 13 | import javax.servlet.http.HttpServlet; 14 | import javax.servlet.http.HttpServletRequest; 15 | import javax.servlet.http.HttpServletResponse; 16 | 17 | /** 18 | * 19 | * @author MuhammadHarris 20 | */ 21 | public class SetSeats extends HttpServlet { 22 | 23 | 24 | @Override 25 | protected void doPost(HttpServletRequest request, HttpServletResponse response) 26 | throws ServletException, IOException { 27 | 28 | ArrayList flights = (ArrayList) (getServletContext().getAttribute("flights")); 29 | 30 | Flight flight = null; 31 | 32 | for (int i = 0; i < flights.size(); i++) 33 | { 34 | if (flights.get(i).getFlightName().equals(request.getParameter("flight_name"))) 35 | { 36 | flight = flights.get(i); 37 | break; 38 | } 39 | } 40 | 41 | flight.setOldESeats(flight.getEconomySeats()); 42 | flight.setOldBSeats(flight.getBusinessSeats()); 43 | flight.setOldFSeats(flight.getFirstSeats()); 44 | flight.setOldTSeats(flight.getTotalSeats()); 45 | 46 | flight.setEconomySeats(Integer.parseInt (request.getParameter("seats_e"))); 47 | flight.setBusinessSeats(Integer.parseInt (request.getParameter("seats_b"))); 48 | flight.setFirstSeats(Integer.parseInt (request.getParameter("seats_f"))); 49 | flight.setTotalSeats(flight.getEconomySeats() + flight.getBusinessSeats() + flight.getFirstSeats()); 50 | 51 | flight.setCurrentSeats(flight.getTotalSeats()); 52 | 53 | 54 | flight.isChanged = true; 55 | 56 | response.sendRedirect("SetSeats.jsp"); 57 | } 58 | } 59 | -------------------------------------------------------------------------------- /Project/TurkishAirlines/src/java/airlines.accdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harismuneer/Flight-Booking-System-JavaServlets_App/140e66e2635b3139919ca69e22a0abdac6cc0ffd/Project/TurkishAirlines/src/java/airlines.accdb -------------------------------------------------------------------------------- /Project/TurkishAirlines/src/java/customer/BookFlight.java: -------------------------------------------------------------------------------- 1 | package customer; 2 | 3 | /* 4 | * To change this license header, choose License Headers in Project Properties. 5 | * To change this template file, choose Tools | Templates 6 | * and open the template in the editor. 7 | */ 8 | 9 | import java.io.IOException; 10 | import javax.servlet.ServletException; 11 | import javax.servlet.http.HttpServlet; 12 | import javax.servlet.http.HttpServletRequest; 13 | import javax.servlet.http.HttpServletResponse; 14 | 15 | /** 16 | * 17 | * @author MuhammadHarris 18 | */ 19 | public class BookFlight extends HttpServlet { 20 | 21 | 22 | @Override 23 | protected void doGet(HttpServletRequest request, HttpServletResponse response) 24 | throws ServletException, IOException { 25 | 26 | request.getRequestDispatcher("BookFlight.jsp").forward(request, response); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Project/TurkishAirlines/src/java/customer/ChooseFlight.java: -------------------------------------------------------------------------------- 1 | package customer; 2 | 3 | /* 4 | * To change this license header, choose License Headers in Project Properties. 5 | * To change this template file, choose Tools | Templates 6 | * and open the template in the editor. 7 | */ 8 | 9 | import models.Customer; 10 | import models.Flight; 11 | import java.io.IOException; 12 | import java.util.ArrayList; 13 | import java.util.Properties; 14 | import javax.mail.Message; 15 | import javax.mail.MessagingException; 16 | import javax.mail.PasswordAuthentication; 17 | import javax.mail.Session; 18 | import javax.mail.Transport; 19 | import javax.mail.internet.InternetAddress; 20 | import javax.mail.internet.MimeMessage; 21 | import javax.servlet.ServletException; 22 | import javax.servlet.http.HttpServlet; 23 | import javax.servlet.http.HttpServletRequest; 24 | import javax.servlet.http.HttpServletResponse; 25 | 26 | 27 | /** 28 | * 29 | * @author MuhammadHarris 30 | */ 31 | public class ChooseFlight extends HttpServlet { 32 | 33 | 34 | @Override 35 | protected void doPost(HttpServletRequest request, HttpServletResponse response) 36 | throws ServletException, IOException { 37 | 38 | ArrayList flights = (ArrayList) (getServletContext().getAttribute("flights")); 39 | 40 | Flight f = null; 41 | 42 | for (int i = 0; i < flights.size(); i++) 43 | { 44 | if (flights.get(i).getFlightName().equals(request.getParameter("flight_name"))) 45 | { 46 | f = flights.get(i); 47 | break; 48 | } 49 | } 50 | 51 | f.setCustomer((Customer)(request.getSession().getAttribute("customer"))); 52 | 53 | /* 54 | //CODE TO SEND EMAIL 55 | 56 | 57 | final String username = "your email"; 58 | final String password = "your email account's password"; 59 | 60 | Properties props = new Properties(); 61 | props.put("mail.smtp.auth", "true"); 62 | props.put("mail.smtp.starttls.enable", "true"); 63 | props.put("mail.smtp.host", "smtp.gmail.com"); 64 | props.put("mail.smtp.port", "587"); 65 | 66 | Session session = Session.getInstance(props, 67 | new javax.mail.Authenticator() { 68 | protected PasswordAuthentication getPasswordAuthentication() { 69 | return new PasswordAuthentication(username, password); 70 | } 71 | }); 72 | 73 | try { 74 | 75 | Message message = new MimeMessage(session); 76 | message.setFrom(new InternetAddress("your email")); 77 | message.setRecipients(Message.RecipientType.TO, 78 | InternetAddress.parse(((Customer)(request.getSession().getAttribute("customer"))).getEmail() )); 79 | message.setSubject("Your Itinery"); 80 | message.setText("Departure City:" + f.getDepartureCity() + " Arrival City:" + f.getArrivalCity() + " Departure Date:" + f.getDepartureDate() + " Arrival Date:" + f.getArrivalDate()); 81 | 82 | Transport.send(message); 83 | 84 | 85 | } catch (MessagingException e) { 86 | } 87 | */ 88 | 89 | request.getRequestDispatcher("CurrentBooking.do").forward(request, response); 90 | } 91 | 92 | } 93 | -------------------------------------------------------------------------------- /Project/TurkishAirlines/src/java/customer/CurrentBooking.java: -------------------------------------------------------------------------------- 1 | package customer; 2 | 3 | /* 4 | * To change this license header, choose License Headers in Project Properties. 5 | * To change this template file, choose Tools | Templates 6 | * and open the template in the editor. 7 | */ 8 | 9 | import models.Customer; 10 | import models.Seat; 11 | import java.io.IOException; 12 | import java.util.ArrayList; 13 | import javax.servlet.ServletException; 14 | import javax.servlet.http.HttpServlet; 15 | import javax.servlet.http.HttpServletRequest; 16 | import javax.servlet.http.HttpServletResponse; 17 | 18 | /** 19 | * 20 | * @author MuhammadHarris 21 | */ 22 | public class CurrentBooking extends HttpServlet { 23 | 24 | @Override 25 | protected void doGet(HttpServletRequest request, HttpServletResponse response) 26 | throws ServletException, IOException { 27 | 28 | Customer customer = (Customer)(request.getSession(false).getAttribute("customer")); 29 | 30 | ArrayList seats = customer.getCurrentBooking(); 31 | 32 | request.setAttribute("seats", seats); 33 | 34 | request.getRequestDispatcher("CurrentBooking.jsp").forward(request,response); 35 | } 36 | 37 | @Override 38 | protected void doPost(HttpServletRequest request, HttpServletResponse response) 39 | throws ServletException, IOException { 40 | 41 | Customer customer = (Customer)(request.getSession(false).getAttribute("customer")); 42 | 43 | ArrayList seats = customer.getCurrentBooking(); 44 | 45 | request.setAttribute("seats", seats); 46 | 47 | request.getRequestDispatcher("CurrentBooking.jsp").forward(request,response); 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /Project/TurkishAirlines/src/java/customer/SearchFlights.java: -------------------------------------------------------------------------------- 1 | package customer; 2 | 3 | /* 4 | * To change this license header, choose License Headers in Project Properties. 5 | * To change this template file, choose Tools | Templates 6 | * and open the template in the editor. 7 | */ 8 | 9 | import models.FBS; 10 | import models.Features; 11 | import models.Flight; 12 | import java.io.IOException; 13 | import java.util.Date; 14 | import java.sql.Connection; 15 | import java.text.DateFormat; 16 | import java.text.ParseException; 17 | import java.text.SimpleDateFormat; 18 | import java.time.temporal.ChronoUnit; 19 | import java.util.ArrayList; 20 | import java.util.logging.Level; 21 | import java.util.logging.Logger; 22 | import javax.servlet.ServletException; 23 | import javax.servlet.http.HttpServlet; 24 | import javax.servlet.http.HttpServletRequest; 25 | import javax.servlet.http.HttpServletResponse; 26 | 27 | /** 28 | * 29 | * @author MuhammadHarris 30 | */ 31 | public class SearchFlights extends HttpServlet { 32 | 33 | 34 | @Override 35 | protected void doPost(HttpServletRequest request, HttpServletResponse response) 36 | throws ServletException, IOException { 37 | 38 | ArrayList flights = (ArrayList) (getServletContext().getAttribute("flights")); 39 | 40 | DateFormat df = new SimpleDateFormat("MM/dd/yyyy HH:mm:ss"); 41 | 42 | ArrayList results = new ArrayList(); 43 | 44 | /* 45 | for (int i = 0; i < flights.size(); i++) 46 | { 47 | Flight f = flights.get(i); 48 | 49 | if ((f.getDepartureCity().equals(request.getParameter("from"))) && (f.getArrivalCity().equals(request.getParameter("to"))) && (reportDate.equals(request.getParameter("depart")))) 50 | { 51 | if (f.getCurrentSeats() >= Integer.parseInt(request.getParameter("people"))) 52 | { 53 | if (request.getParameter("class").equals("Economy") && (f.getEconomySeats()>= Integer.parseInt(request.getParameter("people")))) 54 | { 55 | if (!f.isChanged && !Features.isChanged) 56 | results.add(f); 57 | } 58 | else if (request.getParameter("class").equals("Business") && (f.getBusinessSeats()>= Integer.parseInt(request.getParameter("people")))) 59 | { 60 | if (!f.isChanged && !Features.isChanged) 61 | results.add(f); 62 | } 63 | else if (request.getParameter("class").equals("First") && (f.getFirstSeats()>= Integer.parseInt(request.getParameter("people")))) 64 | { 65 | if (!f.isChanged && !Features.isChanged) 66 | results.add(f); 67 | } 68 | } 69 | } 70 | } 71 | */ 72 | 73 | results.add(flights.get(1)); 74 | request.setAttribute("results", results); 75 | request.getRequestDispatcher("ShowFlights.jsp").forward(request,response); 76 | 77 | } 78 | } 79 | -------------------------------------------------------------------------------- /Project/TurkishAirlines/src/java/filters/SecurityFilter.java: -------------------------------------------------------------------------------- 1 | package filters; 2 | 3 | /* 4 | * To change this license header, choose License Headers in Project Properties. 5 | * To change this template file, choose Tools | Templates 6 | * and open the template in the editor. 7 | */ 8 | 9 | import java.io.IOException; 10 | import java.io.PrintStream; 11 | import java.io.PrintWriter; 12 | import java.io.StringWriter; 13 | import javax.servlet.Filter; 14 | import javax.servlet.FilterChain; 15 | import javax.servlet.FilterConfig; 16 | import javax.servlet.ServletException; 17 | import javax.servlet.ServletRequest; 18 | import javax.servlet.ServletResponse; 19 | import javax.servlet.http.HttpServletResponse; 20 | 21 | /** 22 | * 23 | * @author MuhammadHarris 24 | */ 25 | public class SecurityFilter implements Filter { 26 | 27 | @Override 28 | public void doFilter(ServletRequest request, ServletResponse response, 29 | FilterChain chain) 30 | throws IOException, ServletException 31 | { 32 | chain.doFilter(request, response); 33 | 34 | HttpServletResponse res = (HttpServletResponse) response; 35 | 36 | res.setHeader("Cache-Control", "no-cache, no-store, must-revalidate"); // HTTP 1.1. 37 | res.setHeader("Pragma", "no-cache"); // HTTP 1.0. 38 | res.setDateHeader("Expires", 0); // Proxies. 39 | } 40 | 41 | @Override 42 | public void init(FilterConfig filterConfig){ 43 | 44 | } 45 | 46 | @Override 47 | public void destroy() { 48 | } 49 | } 50 | 51 | -------------------------------------------------------------------------------- /Project/TurkishAirlines/src/java/filters/XSSFilter.java: -------------------------------------------------------------------------------- 1 | package filters; 2 | 3 | /* 4 | * To change this license header, choose License Headers in Project Properties. 5 | * To change this template file, choose Tools | Templates 6 | * and open the template in the editor. 7 | */ 8 | 9 | import java.io.IOException; 10 | import javax.servlet.Filter; 11 | import javax.servlet.FilterChain; 12 | import javax.servlet.FilterConfig; 13 | import javax.servlet.ServletException; 14 | import javax.servlet.ServletRequest; 15 | import javax.servlet.ServletResponse; 16 | import javax.servlet.http.HttpServletRequest; 17 | 18 | public class XSSFilter implements Filter 19 | { 20 | 21 | @Override 22 | public void init(FilterConfig filterConfig) throws ServletException { 23 | } 24 | 25 | @Override 26 | public void destroy() { 27 | } 28 | 29 | @Override 30 | public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) 31 | throws IOException, ServletException { 32 | chain.doFilter(new XSSRequestWrapper((HttpServletRequest) request), response); 33 | } 34 | 35 | } -------------------------------------------------------------------------------- /Project/TurkishAirlines/src/java/filters/XSSRequestWrapper.java: -------------------------------------------------------------------------------- 1 | package filters; 2 | 3 | import java.util.regex.Pattern; 4 | import javax.servlet.http.HttpServletRequest; 5 | import javax.servlet.http.HttpServletRequestWrapper; 6 | 7 | public class XSSRequestWrapper extends HttpServletRequestWrapper { 8 | 9 | private static Pattern[] patterns = new Pattern[]{ 10 | // Script fragments 11 | Pattern.compile("", Pattern.CASE_INSENSITIVE), 12 | // src='...' 13 | Pattern.compile("src[\r\n]*=[\r\n]*\\\'(.*?)\\\'", Pattern.CASE_INSENSITIVE | Pattern.MULTILINE | Pattern.DOTALL), 14 | Pattern.compile("src[\r\n]*=[\r\n]*\\\"(.*?)\\\"", Pattern.CASE_INSENSITIVE | Pattern.MULTILINE | Pattern.DOTALL), 15 | // lonely script tags 16 | Pattern.compile("", Pattern.CASE_INSENSITIVE), 17 | Pattern.compile("", Pattern.CASE_INSENSITIVE | Pattern.MULTILINE | Pattern.DOTALL), 18 | // eval(...) 19 | Pattern.compile("eval\\((.*?)\\)", Pattern.CASE_INSENSITIVE | Pattern.MULTILINE | Pattern.DOTALL), 20 | // expression(...) 21 | Pattern.compile("expression\\((.*?)\\)", Pattern.CASE_INSENSITIVE | Pattern.MULTILINE | Pattern.DOTALL), 22 | // javascript:... 23 | Pattern.compile("javascript:", Pattern.CASE_INSENSITIVE), 24 | // vbscript:... 25 | Pattern.compile("vbscript:", Pattern.CASE_INSENSITIVE), 26 | // onload(...)=... 27 | Pattern.compile("onload(.*?)=", Pattern.CASE_INSENSITIVE | Pattern.MULTILINE | Pattern.DOTALL) 28 | }; 29 | 30 | public XSSRequestWrapper(HttpServletRequest servletRequest) { 31 | super(servletRequest); 32 | } 33 | 34 | @Override 35 | public String[] getParameterValues(String parameter) { 36 | String[] values = super.getParameterValues(parameter); 37 | 38 | if (values == null) { 39 | return null; 40 | } 41 | 42 | int count = values.length; 43 | String[] encodedValues = new String[count]; 44 | for (int i = 0; i < count; i++) { 45 | encodedValues[i] = stripXSS(values[i]); 46 | } 47 | 48 | return encodedValues; 49 | } 50 | 51 | @Override 52 | public String getParameter(String parameter) { 53 | String value = super.getParameter(parameter); 54 | 55 | return stripXSS(value); 56 | } 57 | 58 | @Override 59 | public String getHeader(String name) { 60 | String value = super.getHeader(name); 61 | return stripXSS(value); 62 | } 63 | 64 | private String stripXSS(String value) { 65 | if (value != null) { 66 | // NOTE: It's highly recommended to use the ESAPI library and uncomment the following line to 67 | // avoid encoded attacks. 68 | // value = ESAPI.encoder().canonicalize(value); 69 | 70 | // Avoid null characters 71 | value = value.replaceAll("\0", ""); 72 | 73 | // Remove all sections that match a pattern 74 | for (Pattern scriptPattern : patterns){ 75 | value = scriptPattern.matcher(value).replaceAll(""); 76 | } 77 | } 78 | return value; 79 | } 80 | } -------------------------------------------------------------------------------- /Project/TurkishAirlines/src/java/manager/ApproveFeatures.java: -------------------------------------------------------------------------------- 1 | package manager; 2 | 3 | /* 4 | * To change this license header, choose License Headers in Project Properties. 5 | * To change this template file, choose Tools | Templates 6 | * and open the template in the editor. 7 | */ 8 | 9 | import models.Features; 10 | import java.io.IOException; 11 | import java.util.ArrayList; 12 | import javax.servlet.ServletException; 13 | import javax.servlet.http.HttpServlet; 14 | import javax.servlet.http.HttpServletRequest; 15 | import javax.servlet.http.HttpServletResponse; 16 | 17 | /** 18 | * 19 | * @author MuhammadHarris 20 | */ 21 | public class ApproveFeatures extends HttpServlet { 22 | 23 | 24 | @Override 25 | protected void doPost(HttpServletRequest request, HttpServletResponse response) 26 | throws ServletException, IOException { 27 | 28 | ArrayList f = (ArrayList) (getServletContext().getAttribute("features")); 29 | 30 | 31 | for (int i = 0; i < 3; i++) 32 | { 33 | (f.get(i)).setNewSeatPitch( 0); 34 | (f.get(i)).setNewSeatWidth( 0); 35 | (f.get(i)).setNewVideoType( null); 36 | (f.get(i)).setNewPowerType( null); 37 | (f.get(i)).setNewSeatType( null); 38 | (f.get(i)).setNewPrice( 0); 39 | (f.get(i)).setNewWifi( null); 40 | (f.get(i)).setNewSpecialFood( null); 41 | } 42 | 43 | Features.isChanged = false; 44 | 45 | response.sendRedirect("ApproveFeatures.jsp"); 46 | } 47 | 48 | 49 | } 50 | -------------------------------------------------------------------------------- /Project/TurkishAirlines/src/java/manager/ApproveSeats.java: -------------------------------------------------------------------------------- 1 | package manager; 2 | 3 | /* 4 | * To change this license header, choose License Headers in Project Properties. 5 | * To change this template file, choose Tools | Templates 6 | * and open the template in the editor. 7 | */ 8 | 9 | import models.Flight; 10 | import java.io.IOException; 11 | import java.util.ArrayList; 12 | import javax.servlet.ServletException; 13 | import javax.servlet.http.HttpServlet; 14 | import javax.servlet.http.HttpServletRequest; 15 | import javax.servlet.http.HttpServletResponse; 16 | 17 | /** 18 | * 19 | * @author MuhammadHarris 20 | */ 21 | public class ApproveSeats extends HttpServlet { 22 | 23 | 24 | @Override 25 | protected void doPost(HttpServletRequest request, HttpServletResponse response) 26 | throws ServletException, IOException { 27 | 28 | ArrayList flights = (ArrayList) (getServletContext().getAttribute("flights")); 29 | 30 | Flight f = null; 31 | 32 | String a = request.getParameter("flight_name"); 33 | 34 | for (int i = 0; i < flights.size(); i++) 35 | { 36 | if (flights.get(i).getFlightName().equals(request.getParameter("flight_name"))) 37 | { 38 | f = flights.get(i); 39 | break; 40 | } 41 | } 42 | 43 | f.setOldESeats(0); 44 | f.setOldBSeats(0); 45 | f.setOldFSeats(0); 46 | f.setOldTSeats(0); 47 | 48 | f.isChanged = false; 49 | response.sendRedirect("ApproveSeats.jsp"); 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /Project/TurkishAirlines/src/java/manager/DisapproveFeatures.java: -------------------------------------------------------------------------------- 1 | package manager; 2 | 3 | /* 4 | * To change this license header, choose License Headers in Project Properties. 5 | * To change this template file, choose Tools | Templates 6 | * and open the template in the editor. 7 | */ 8 | 9 | import models.Features; 10 | import java.io.IOException; 11 | import java.util.ArrayList; 12 | import javax.servlet.ServletException; 13 | import javax.servlet.http.HttpServlet; 14 | import javax.servlet.http.HttpServletRequest; 15 | import javax.servlet.http.HttpServletResponse; 16 | 17 | /** 18 | * 19 | * @author MuhammadHarris 20 | */ 21 | public class DisapproveFeatures extends HttpServlet { 22 | 23 | 24 | @Override 25 | protected void doPost(HttpServletRequest request, HttpServletResponse response) 26 | throws ServletException, IOException { 27 | 28 | ArrayList f = (ArrayList) (getServletContext().getAttribute("features")); 29 | 30 | for (int i = 0; i < 3; i++) 31 | { 32 | 33 | (f.get(i)).setSeatPitch( f.get(i).getNewSeatPitch() ); 34 | (f.get(i)).setSeatWidth( f.get(i).getNewSeatWidth() ); 35 | (f.get(i)).setVideoType( f.get(i).getNewVideoType() ); 36 | (f.get(i)).setPowerType( f.get(i).getNewPowerType() ); 37 | (f.get(i)).setSeatType( f.get(i).getNewSeatType() ); 38 | (f.get(i)).setPrice( f.get(i).getNewPrice() ); 39 | (f.get(i)).setWifi( f.get(i).getNewWifi() ); 40 | (f.get(i)).setSpecialFood( f.get(i).getNewSpecialFood() ); 41 | 42 | 43 | (f.get(i)).setNewSeatPitch( 0); 44 | (f.get(i)).setNewSeatWidth( 0); 45 | (f.get(i)).setNewVideoType( null); 46 | (f.get(i)).setNewPowerType( null); 47 | (f.get(i)).setNewSeatType( null); 48 | (f.get(i)).setNewPrice( 0); 49 | (f.get(i)).setNewWifi( null); 50 | (f.get(i)).setNewSpecialFood( null); 51 | 52 | } 53 | 54 | Features.isChanged = false; 55 | 56 | response.sendRedirect("ApproveFeatures.jsp"); 57 | } 58 | 59 | 60 | } 61 | -------------------------------------------------------------------------------- /Project/TurkishAirlines/src/java/manager/DisapproveSeats.java: -------------------------------------------------------------------------------- 1 | package manager; 2 | 3 | /* 4 | * To change this license header, choose License Headers in Project Properties. 5 | * To change this template file, choose Tools | Templates 6 | * and open the template in the editor. 7 | */ 8 | 9 | import models.FBS; 10 | import models.Flight; 11 | import java.io.IOException; 12 | import java.sql.Connection; 13 | import java.util.ArrayList; 14 | import javax.servlet.ServletException; 15 | import javax.servlet.http.HttpServlet; 16 | import javax.servlet.http.HttpServletRequest; 17 | import javax.servlet.http.HttpServletResponse; 18 | 19 | /** 20 | * 21 | * @author MuhammadHarris 22 | */ 23 | public class DisapproveSeats extends HttpServlet { 24 | 25 | 26 | @Override 27 | protected void doPost(HttpServletRequest request, HttpServletResponse response) 28 | throws ServletException, IOException { 29 | 30 | ArrayList flights = (ArrayList) (getServletContext().getAttribute("flights")); 31 | 32 | Flight f = null; 33 | 34 | for (int i = 0; i < flights.size(); i++) 35 | { 36 | if (flights.get(i).getFlightName().equals(request.getParameter("flight_name"))) 37 | { 38 | f = flights.get(i); 39 | break; 40 | } 41 | } 42 | 43 | f.setEconomySeats(f.getOldESeats()); 44 | f.setBusinessSeats(f.getOldBSeats()); 45 | f.setFirstSeats(f.getOldFSeats()); 46 | f.setTotalSeats(f.getOldTSeats()); 47 | f.setCurrentSeats(f.getTotalSeats()); 48 | 49 | f.setOldESeats(0); 50 | f.setOldBSeats(0); 51 | f.setOldFSeats(0); 52 | f.setOldTSeats(0); 53 | 54 | f.isChanged = false; 55 | response.sendRedirect("ApproveSeats.jsp"); 56 | } 57 | } 58 | -------------------------------------------------------------------------------- /Project/TurkishAirlines/src/java/models/Customer.java: -------------------------------------------------------------------------------- 1 | package models; 2 | 3 | import java.util.ArrayList; 4 | 5 | /* 6 | * To change this license header, choose License Headers in Project Properties. 7 | * To change this template file, choose Tools | Templates 8 | * and open the template in the editor. 9 | */ 10 | 11 | /** 12 | * 13 | * @author MuhammadHarris 14 | */ 15 | public class Customer extends Person { 16 | 17 | ArrayList seats; 18 | 19 | public Customer(String f,String e, ArrayList s) 20 | { 21 | super(f,e); 22 | seats = s; 23 | } 24 | 25 | public ArrayList getCurrentBooking() 26 | { 27 | return seats; 28 | } 29 | 30 | public void setSeat(Seat s) 31 | { 32 | if(seats == null) 33 | seats = new ArrayList(); 34 | 35 | seats.add(s); 36 | } 37 | 38 | 39 | public String getEmail() 40 | { 41 | return email; 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /Project/TurkishAirlines/src/java/models/Employee.java: -------------------------------------------------------------------------------- 1 | /* 2 | * To change this license header, choose License Headers in Project Properties. 3 | * To change this template file, choose Tools | Templates 4 | * and open the template in the editor. 5 | */ 6 | package models; 7 | 8 | /** 9 | * 10 | * @author MuhammadHarris 11 | */ 12 | public class Employee extends Person { 13 | 14 | String employeeDesignation; 15 | 16 | 17 | public Employee(String f, String e, String d) 18 | { 19 | super(f,e); 20 | employeeDesignation = d; 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /Project/TurkishAirlines/src/java/models/Flight.java: -------------------------------------------------------------------------------- 1 | package models; 2 | 3 | 4 | import java.sql.Date; 5 | import java.util.ArrayList; 6 | 7 | /* 8 | * To change this license header, choose License Headers in Project Properties. 9 | * To change this template file, choose Tools | Templates 10 | * and open the template in the editor. 11 | */ 12 | 13 | /** 14 | * 15 | * @author MuhammadHarris 16 | */ 17 | public class Flight { 18 | 19 | String flightName; 20 | 21 | ArrayList seats; 22 | int totalSeats; 23 | int currentSeats; 24 | 25 | String departureCity; 26 | String arrivalCity; 27 | 28 | Date departureDate; 29 | Date arrivalDate; 30 | 31 | int economySeats; 32 | int businessSeats; 33 | int firstSeats; 34 | 35 | int oldESeats; 36 | int oldBSeats; 37 | int oldFSeats; 38 | int oldTSeats; 39 | 40 | public boolean isChanged; 41 | 42 | public Flight(boolean c, int oldE, int oldB, int oldF, int oldT, String flightName, ArrayList seats, int totalSeats, int currentSeats, String departureCity, String arrivalCity, Date departureDate, Date arrivalDate, int economySeats, int bSeats, int firstSeats) 43 | { 44 | isChanged = c; 45 | 46 | oldESeats = oldE; 47 | oldBSeats = oldB; 48 | oldFSeats = oldF; 49 | oldTSeats = oldT; 50 | 51 | this.flightName = flightName; 52 | 53 | this.seats = seats; 54 | this.totalSeats = totalSeats; 55 | this.currentSeats = currentSeats; 56 | 57 | this.departureCity = departureCity; 58 | this.arrivalCity = arrivalCity; 59 | 60 | this.departureDate = departureDate; 61 | this.arrivalDate = arrivalDate; 62 | 63 | this.economySeats = economySeats; 64 | this.businessSeats = bSeats; 65 | this.firstSeats = firstSeats; 66 | } 67 | 68 | public boolean isEmpty() 69 | { 70 | return (totalSeats==currentSeats); 71 | } 72 | 73 | 74 | public String getFlightName() 75 | { 76 | return flightName; 77 | } 78 | 79 | 80 | public int getOldESeats() 81 | { 82 | return oldESeats; 83 | } 84 | 85 | public int getOldBSeats() 86 | { 87 | return oldBSeats; 88 | } 89 | 90 | public int getOldFSeats() 91 | { 92 | return oldFSeats; 93 | } 94 | 95 | public int getOldTSeats() 96 | { 97 | return oldTSeats; 98 | } 99 | 100 | public int getEconomySeats() 101 | { 102 | return economySeats; 103 | } 104 | 105 | public int getBusinessSeats() 106 | { 107 | return businessSeats; 108 | } 109 | 110 | public int getFirstSeats() 111 | { 112 | return firstSeats; 113 | } 114 | 115 | public int getTotalSeats() 116 | { 117 | return totalSeats; 118 | } 119 | 120 | 121 | 122 | 123 | public void setOldESeats(int s) 124 | { 125 | oldESeats = s; 126 | } 127 | 128 | public void setOldBSeats(int s) 129 | { 130 | oldBSeats = s; 131 | } 132 | 133 | public void setOldFSeats(int s) 134 | { 135 | oldFSeats = s; 136 | } 137 | 138 | public void setOldTSeats(int s) 139 | { 140 | oldTSeats = s; 141 | } 142 | 143 | public void setEconomySeats(int s) 144 | { 145 | economySeats = s; 146 | } 147 | 148 | public void setBusinessSeats(int s) 149 | { 150 | businessSeats = s; 151 | } 152 | 153 | public void setFirstSeats(int s) 154 | { 155 | firstSeats = s; 156 | } 157 | 158 | public void setTotalSeats(int s) 159 | { 160 | totalSeats = s; 161 | } 162 | 163 | public void setCurrentSeats(int s) 164 | { 165 | currentSeats = s; 166 | } 167 | 168 | 169 | 170 | public String getDepartureCity() 171 | { 172 | return departureCity; 173 | } 174 | 175 | public String getArrivalCity() 176 | { 177 | return arrivalCity; 178 | } 179 | 180 | public Date getDepartureDate() 181 | { 182 | return departureDate; 183 | } 184 | 185 | public Date getArrivalDate() 186 | { 187 | return arrivalDate; 188 | } 189 | 190 | 191 | public int getCurrentSeats() 192 | { 193 | return currentSeats; 194 | } 195 | 196 | public void setCustomer (Customer c) 197 | { 198 | seats.get(totalSeats-currentSeats).setCustomer(c); 199 | c.setSeat(seats.get(totalSeats-currentSeats)); 200 | currentSeats--; 201 | } 202 | 203 | public void setSeats (ArrayList s) 204 | { 205 | seats = s; 206 | } 207 | } 208 | -------------------------------------------------------------------------------- /Project/TurkishAirlines/src/java/models/Person.java: -------------------------------------------------------------------------------- 1 | package models; 2 | 3 | /* 4 | * To change this license header, choose License Headers in Project Properties. 5 | * To change this template file, choose Tools | Templates 6 | * and open the template in the editor. 7 | */ 8 | 9 | /** 10 | * 11 | * @author MuhammadHarris 12 | */ 13 | public abstract class Person { 14 | 15 | String name; 16 | String email; 17 | 18 | 19 | public Person(String f,String e) 20 | { 21 | name = f; 22 | email = e; 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /Project/TurkishAirlines/src/java/models/Seat.java: -------------------------------------------------------------------------------- 1 | package models; 2 | 3 | 4 | import models.Features; 5 | import java.util.ArrayList; 6 | 7 | /* 8 | * To change this license header, choose License Headers in Project Properties. 9 | * To change this template file, choose Tools | Templates 10 | * and open the template in the editor. 11 | */ 12 | 13 | /** 14 | * 15 | * @author MuhammadHarris 16 | */ 17 | public class Seat { 18 | 19 | int seatNumber; 20 | Flight flight; 21 | Features features; 22 | Customer c; 23 | 24 | public Seat(int sNumber, Flight flight, Features features, Customer c) 25 | { 26 | seatNumber = sNumber; 27 | this.flight = flight; 28 | this.features = features; 29 | this.c = c; 30 | } 31 | 32 | 33 | public Flight getFlight() 34 | { 35 | return flight; 36 | } 37 | 38 | public void setCustomer(Customer c) 39 | { 40 | this.c = c; 41 | } 42 | 43 | public int getSeatNumber() 44 | { 45 | return seatNumber; 46 | } 47 | 48 | 49 | 50 | } 51 | -------------------------------------------------------------------------------- /Project/TurkishAirlines/src/java/webservices/PriceAndSeats.java: -------------------------------------------------------------------------------- 1 | package webservices; 2 | 3 | import javax.jws.WebService; 4 | import javax.jws.WebMethod; 5 | import javax.jws.WebParam; 6 | import models.FBS; 7 | 8 | 9 | @WebService(serviceName = "PriceAndSeats") 10 | public class PriceAndSeats 11 | { 12 | @WebMethod(operationName = "GetSeatPrice") 13 | public int getPrice(@WebParam(name = "origin") String origin,@WebParam(name = "destination") String destination) 14 | { 15 | return FBS.getPrice(origin,destination); 16 | } 17 | 18 | @WebMethod(operationName = "GetAvailableSeats") 19 | public int getSeats(@WebParam(name = "flightNumber") String flightNumber,@WebParam(name = "arrivalDate") String date) 20 | { 21 | return FBS.getSeats(flightNumber,date); 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /Project/TurkishAirlines/web/CurrentBooking.jsp: -------------------------------------------------------------------------------- 1 | 2 | <%@page import="models.Seat"%> 3 | <%@page import="java.util.ArrayList"%> 4 | <%@page contentType="text/html" pageEncoding="UTF-8"%> 5 | 6 | 7 | 8 | 9 | 10 | 11 | Current Booking 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 |



20 |

Current Bookings

21 |

22 |
23 | 24 |
25 | 26 | 27 |
28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | <% 42 | ArrayList seats = (ArrayList)(request.getAttribute("seats")); 43 | 44 | for (int i = 0; i < seats.size(); i++) 45 | { 46 | out.print(""); 47 | out.print(""); 48 | out.print(""); 49 | out.print(""); 50 | out.print(""); 51 | out.print(""); 52 | out.print(""); 53 | out.print(""); 54 | out.print(""); 55 | } 56 | %> 57 | 58 | 59 | 60 |
#FlightDeparture CityArrival CityDeparture DateArrival DateSeat Number
" + (i+1) + "" + seats.get(i).getFlight().getFlightName() + "" + seats.get(i).getFlight().getDepartureCity() + "" + seats.get(i).getFlight().getArrivalCity() + "" + seats.get(i).getFlight().getDepartureDate() + "" + seats.get(i).getFlight().getArrivalDate() + "" + seats.get(i).getSeatNumber() + "
61 | 62 |





63 | 64 |
65 |
66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | -------------------------------------------------------------------------------- /Project/TurkishAirlines/web/ErrorPage.jsp: -------------------------------------------------------------------------------- 1 | <%-- 2 | Document : ErrorPage 3 | Created on : Nov 7, 2017, 2:19:06 AM 4 | Author : MuhammadHarris 5 | --%> 6 | 7 | <%@page contentType="text/html" pageEncoding="UTF-8"%> 8 | 9 | 10 | 11 | 12 | Error Page 13 | 14 | 15 |

Sorry! Wrong ID or Password

16 | 17 | 18 | -------------------------------------------------------------------------------- /Project/TurkishAirlines/web/META-INF/context.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /Project/TurkishAirlines/web/ShowFlights.jsp: -------------------------------------------------------------------------------- 1 | 2 | <%@page import="models.Flight"%> 3 | <%@page import="models.Seat"%> 4 | <%@page import="java.util.ArrayList"%> 5 | <%@page contentType="text/html" pageEncoding="UTF-8"%> 6 | 7 | 8 | 9 | 10 | 11 | 12 | Show Flights 13 | 14 | 15 | 16 | 17 | 18 | 19 |



20 |

Your Itinery

21 |

22 | 23 | 24 |
25 | 26 | 27 |
28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | <% 41 | ArrayList results = (ArrayList)(request.getAttribute("results")); 42 | 43 | for (int i = 0; i < results.size(); i++) 44 | { 45 | out.print("
"); 46 | out.print("
"); 47 | out.print(""); 48 | out.print(""); 49 | out.print(""); 50 | out.print(""); 51 | out.print(""); 52 | out.print(""); 53 | out.print(""); 54 | out.print(""); 55 | out.print(""); 56 | } 57 | %> 58 | 59 | 60 | 61 |
FlightDeparture CityArrival CityDeparture DateArrival DateClass
62 |






63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | -------------------------------------------------------------------------------- /Project/TurkishAirlines/web/Templates/AdminHeader.jsp: -------------------------------------------------------------------------------- 1 | 2 |
3 | 9 |
10 | 11 | 12 | -------------------------------------------------------------------------------- /Project/TurkishAirlines/web/Templates/AdminPanel.jsp: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 |
5 | Change Features 6 | Set Seats 7 | Logout 8 |
9 |
10 | 11 | -------------------------------------------------------------------------------- /Project/TurkishAirlines/web/Templates/CustomerHeader.jsp: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 | 26 |
27 | -------------------------------------------------------------------------------- /Project/TurkishAirlines/web/Templates/Footer.jsp: -------------------------------------------------------------------------------- 1 | 2 |
3 |
Turkish Airlines 2017 © All Rights Reserved.
4 |

Web-site designed by Haris Muneer

5 | 6 |
7 | -------------------------------------------------------------------------------- /Project/TurkishAirlines/web/Templates/HeadMetaInfo.jsp: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /Project/TurkishAirlines/web/Templates/ManagerPanel.jsp: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 9 |
10 | 11 | -------------------------------------------------------------------------------- /Project/TurkishAirlines/web/WEB-INF/Login.jsp: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Login & Register 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |

Login to our site

38 |

Enter username and password to log on:

39 |
40 |
41 | 42 |
43 |
44 |
45 | 56 |
57 |
58 |
59 |
60 |
61 | 62 |
63 |
64 |
65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | -------------------------------------------------------------------------------- /Project/TurkishAirlines/web/WEB-INF/sun-jaxws.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /Project/TurkishAirlines/web/assets/autocompleter.js: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | $(document).ready(function() { 5 | $(function() { 6 | $("#osearch").autocomplete({ 7 | source : function(request, response) { 8 | $.ajax({ 9 | url : "OriginCompleter", 10 | type : "GET", 11 | data : { 12 | term : request.term 13 | }, 14 | dataType : "json", 15 | success : function(data) { 16 | response(data); 17 | } 18 | }); 19 | } 20 | }); 21 | }); 22 | }); 23 | 24 | 25 | $(document).ready(function() { 26 | $(function() { 27 | $("#dsearch").autocomplete({ 28 | source : function(request, response) { 29 | $.ajax({ 30 | url : "OriginCompleter", 31 | type : "GET", 32 | data : { 33 | term : request.term 34 | }, 35 | dataType : "json", 36 | success : function(data) { 37 | response(data); 38 | } 39 | }); 40 | } 41 | }); 42 | }); 43 | }); -------------------------------------------------------------------------------- /Project/TurkishAirlines/web/assets/css/carousel.css: -------------------------------------------------------------------------------- 1 | /* GLOBAL STYLES 2 | -------------------------------------------------- */ 3 | /* Padding below the footer and lighter body text */ 4 | 5 | body { 6 | padding-top: 3rem; 7 | padding-bottom: 3rem; 8 | color: #5a5a5a; 9 | } 10 | 11 | 12 | /* CUSTOMIZE THE CAROUSEL 13 | -------------------------------------------------- */ 14 | 15 | /* Carousel base class */ 16 | .carousel { 17 | margin-bottom: 4rem; 18 | } 19 | /* Since positioning the image, we need to help out the caption */ 20 | .carousel-caption { 21 | z-index: 10; 22 | bottom: 3rem; 23 | } 24 | 25 | /* Declare heights because of positioning of img element */ 26 | .carousel-item { 27 | height: 32rem; 28 | background-color: #777; 29 | } 30 | .carousel-item > img { 31 | position: absolute; 32 | top: 0; 33 | left: 0; 34 | min-width: 100%; 35 | height: 32rem; 36 | } 37 | 38 | 39 | /* MARKETING CONTENT 40 | -------------------------------------------------- */ 41 | 42 | /* Center align the text within the three columns below the carousel */ 43 | .marketing .col-lg-4 { 44 | margin-bottom: 1.5rem; 45 | text-align: center; 46 | } 47 | .marketing h2 { 48 | font-weight: normal; 49 | } 50 | .marketing .col-lg-4 p { 51 | margin-right: .75rem; 52 | margin-left: .75rem; 53 | } 54 | 55 | 56 | /* Featurettes 57 | ------------------------- */ 58 | 59 | .featurette-divider { 60 | margin: 5rem 0; /* Space out the Bootstrap
more */ 61 | } 62 | 63 | /* Thin out the marketing headings */ 64 | .featurette-heading { 65 | font-weight: 300; 66 | line-height: 1; 67 | letter-spacing: -.05rem; 68 | } 69 | 70 | 71 | /* RESPONSIVE CSS 72 | -------------------------------------------------- */ 73 | 74 | @media (min-width: 40em) { 75 | /* Bump up size of carousel content */ 76 | .carousel-caption p { 77 | margin-bottom: 1.25rem; 78 | font-size: 1.25rem; 79 | line-height: 1.4; 80 | } 81 | 82 | .featurette-heading { 83 | font-size: 50px; 84 | } 85 | } 86 | 87 | @media (min-width: 62em) { 88 | .featurette-heading { 89 | margin-top: 7rem; 90 | } 91 | } 92 | -------------------------------------------------------------------------------- /Project/TurkishAirlines/web/assets/css/form-elements.css: -------------------------------------------------------------------------------- 1 | 2 | input[type="text"], 3 | input[type="password"], 4 | textarea, 5 | textarea.form-control { 6 | height: 50px; 7 | margin: 0; 8 | padding: 0 20px; 9 | vertical-align: middle; 10 | background: #fff; 11 | border: 3px solid #fff; 12 | font-family: 'Roboto', sans-serif; 13 | font-size: 16px; 14 | font-weight: 300; 15 | line-height: 50px; 16 | color: #888; 17 | -moz-border-radius: 4px; -webkit-border-radius: 4px; border-radius: 4px; 18 | -moz-box-shadow: none; -webkit-box-shadow: none; box-shadow: none; 19 | -o-transition: all .3s; -moz-transition: all .3s; -webkit-transition: all .3s; -ms-transition: all .3s; transition: all .3s; 20 | } 21 | 22 | textarea, 23 | textarea.form-control { 24 | padding-top: 10px; 25 | padding-bottom: 10px; 26 | line-height: 30px; 27 | } 28 | 29 | input[type="text"]:focus, 30 | input[type="password"]:focus, 31 | textarea:focus, 32 | textarea.form-control:focus { 33 | outline: 0; 34 | background: #fff; 35 | border: 3px solid #fff; 36 | -moz-box-shadow: none; -webkit-box-shadow: none; box-shadow: none; 37 | } 38 | 39 | input[type="text"]:-moz-placeholder, input[type="password"]:-moz-placeholder, 40 | textarea:-moz-placeholder, textarea.form-control:-moz-placeholder { color: #888; } 41 | 42 | input[type="text"]:-ms-input-placeholder, input[type="password"]:-ms-input-placeholder, 43 | textarea:-ms-input-placeholder, textarea.form-control:-ms-input-placeholder { color: #888; } 44 | 45 | input[type="text"]::-webkit-input-placeholder, input[type="password"]::-webkit-input-placeholder, 46 | textarea::-webkit-input-placeholder, textarea.form-control::-webkit-input-placeholder { color: #888; } 47 | 48 | 49 | 50 | button.btn { 51 | height: 50px; 52 | margin: 0; 53 | padding: 0 20px; 54 | vertical-align: middle; 55 | background: #19b9e7; 56 | border: 0; 57 | font-family: 'Roboto', sans-serif; 58 | font-size: 16px; 59 | font-weight: 300; 60 | line-height: 50px; 61 | color: #fff; 62 | -moz-border-radius: 4px; -webkit-border-radius: 4px; border-radius: 4px; 63 | text-shadow: none; 64 | -moz-box-shadow: none; -webkit-box-shadow: none; box-shadow: none; 65 | -o-transition: all .3s; -moz-transition: all .3s; -webkit-transition: all .3s; -ms-transition: all .3s; transition: all .3s; 66 | } 67 | 68 | button.btn:hover { opacity: 0.6; color: #fff; } 69 | 70 | button.btn:active { outline: 0; opacity: 0.6; color: #fff; -moz-box-shadow: none; -webkit-box-shadow: none; box-shadow: none; } 71 | 72 | button.btn:focus { outline: 0; opacity: 0.6; background: #19b9e7; color: #fff; } 73 | 74 | button.btn:active:focus, button.btn.active:focus { outline: 0; opacity: 0.6; background: #19b9e7; color: #fff; } 75 | -------------------------------------------------------------------------------- /Project/TurkishAirlines/web/assets/img/dashboard.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harismuneer/Flight-Booking-System-JavaServlets_App/140e66e2635b3139919ca69e22a0abdac6cc0ffd/Project/TurkishAirlines/web/assets/img/dashboard.jpg -------------------------------------------------------------------------------- /Project/TurkishAirlines/web/assets/img/galaxy.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harismuneer/Flight-Booking-System-JavaServlets_App/140e66e2635b3139919ca69e22a0abdac6cc0ffd/Project/TurkishAirlines/web/assets/img/galaxy.jpg -------------------------------------------------------------------------------- /Project/TurkishAirlines/web/assets/img/itinerary.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harismuneer/Flight-Booking-System-JavaServlets_App/140e66e2635b3139919ca69e22a0abdac6cc0ffd/Project/TurkishAirlines/web/assets/img/itinerary.jpg -------------------------------------------------------------------------------- /Project/TurkishAirlines/web/assets/img/main.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harismuneer/Flight-Booking-System-JavaServlets_App/140e66e2635b3139919ca69e22a0abdac6cc0ffd/Project/TurkishAirlines/web/assets/img/main.jpg -------------------------------------------------------------------------------- /Project/TurkishAirlines/web/assets/img/milky.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harismuneer/Flight-Booking-System-JavaServlets_App/140e66e2635b3139919ca69e22a0abdac6cc0ffd/Project/TurkishAirlines/web/assets/img/milky.jpg -------------------------------------------------------------------------------- /Project/TurkishAirlines/web/assets/img/nav.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harismuneer/Flight-Booking-System-JavaServlets_App/140e66e2635b3139919ca69e22a0abdac6cc0ffd/Project/TurkishAirlines/web/assets/img/nav.jpg -------------------------------------------------------------------------------- /Project/TurkishAirlines/web/assets/img/sign.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harismuneer/Flight-Booking-System-JavaServlets_App/140e66e2635b3139919ca69e22a0abdac6cc0ffd/Project/TurkishAirlines/web/assets/img/sign.jpg -------------------------------------------------------------------------------- /Project/TurkishAirlines/web/assets/img/status.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harismuneer/Flight-Booking-System-JavaServlets_App/140e66e2635b3139919ca69e22a0abdac6cc0ffd/Project/TurkishAirlines/web/assets/img/status.jpg -------------------------------------------------------------------------------- /Project/TurkishAirlines/web/assets/js/jquery.backstretch.min.js: -------------------------------------------------------------------------------- 1 | /*! Backstretch - v2.0.4 - 2013-06-19 2 | * http://srobbin.com/jquery-plugins/backstretch/ 3 | * Copyright (c) 2013 Scott Robbin; Licensed MIT */ 4 | (function(a,d,p){a.fn.backstretch=function(c,b){(c===p||0===c.length)&&a.error("No images were supplied for Backstretch");0===a(d).scrollTop()&&d.scrollTo(0,0);return this.each(function(){var d=a(this),g=d.data("backstretch");if(g){if("string"==typeof c&&"function"==typeof g[c]){g[c](b);return}b=a.extend(g.options,b);g.destroy(!0)}g=new q(this,c,b);d.data("backstretch",g)})};a.backstretch=function(c,b){return a("body").backstretch(c,b).data("backstretch")};a.expr[":"].backstretch=function(c){return a(c).data("backstretch")!==p};a.fn.backstretch.defaults={centeredX:!0,centeredY:!0,duration:5E3,fade:0};var r={left:0,top:0,overflow:"hidden",margin:0,padding:0,height:"100%",width:"100%",zIndex:-999999},s={position:"absolute",display:"none",margin:0,padding:0,border:"none",width:"auto",height:"auto",maxHeight:"none",maxWidth:"none",zIndex:-999999},q=function(c,b,e){this.options=a.extend({},a.fn.backstretch.defaults,e||{});this.images=a.isArray(b)?b:[b];a.each(this.images,function(){a("")[0].src=this});this.isBody=c===document.body;this.$container=a(c);this.$root=this.isBody?l?a(d):a(document):this.$container;c=this.$container.children(".backstretch").first();this.$wrap=c.length?c:a('
').css(r).appendTo(this.$container);this.isBody||(c=this.$container.css("position"),b=this.$container.css("zIndex"),this.$container.css({position:"static"===c?"relative":c,zIndex:"auto"===b?0:b,background:"none"}),this.$wrap.css({zIndex:-999998}));this.$wrap.css({position:this.isBody&&l?"fixed":"absolute"});this.index=0;this.show(this.index);a(d).on("resize.backstretch",a.proxy(this.resize,this)).on("orientationchange.backstretch",a.proxy(function(){this.isBody&&0===d.pageYOffset&&(d.scrollTo(0,1),this.resize())},this))};q.prototype={resize:function(){try{var a={left:0,top:0},b=this.isBody?this.$root.width():this.$root.innerWidth(),e=b,g=this.isBody?d.innerHeight?d.innerHeight:this.$root.height():this.$root.innerHeight(),j=e/this.$img.data("ratio"),f;j>=g?(f=(j-g)/2,this.options.centeredY&&(a.top="-"+f+"px")):(j=g,e=j*this.$img.data("ratio"),f=(e-b)/2,this.options.centeredX&&(a.left="-"+f+"px"));this.$wrap.css({width:b,height:g}).find("img:not(.deleteable)").css({width:e,height:j}).css(a)}catch(h){}return this},show:function(c){if(!(Math.abs(c)>this.images.length-1)){var b=this,e=b.$wrap.find("img").addClass("deleteable"),d={relatedTarget:b.$container[0]};b.$container.trigger(a.Event("backstretch.before",d),[b,c]);this.index=c;clearInterval(b.interval);b.$img=a("").css(s).bind("load",function(f){var h=this.width||a(f.target).width();f=this.height||a(f.target).height();a(this).data("ratio",h/f);a(this).fadeIn(b.options.speed||b.options.fade,function(){e.remove();b.paused||b.cycle();a(["after","show"]).each(function(){b.$container.trigger(a.Event("backstretch."+this,d),[b,c])})});b.resize()}).appendTo(b.$wrap);b.$img.attr("src",b.images[c]);return b}},next:function(){return this.show(this.indexe||d.operamini&&"[object OperaMini]"==={}.toString.call(d.operamini)||n&&7458>t||-1e||h&&6>h||"palmGetResource"in d&&e&&534>e||-1=k)})(jQuery,window); -------------------------------------------------------------------------------- /Project/TurkishAirlines/web/assets/js/placeholder.js: -------------------------------------------------------------------------------- 1 | 2 | $(document).ready(function(){ 3 | 4 | $('input[type="text"], input[type="password"], textarea').each(function() { 5 | $(this).val( $(this).attr('placeholder') ); 6 | }); 7 | 8 | }); -------------------------------------------------------------------------------- /Project/TurkishAirlines/web/assets/js/scripts.js: -------------------------------------------------------------------------------- 1 | 2 | jQuery(document).ready(function() { 3 | 4 | /* 5 | Fullscreen background 6 | */ 7 | $.backstretch("assets/img/backgrounds/1.jpg"); 8 | 9 | /* 10 | Login form validation 11 | */ 12 | $('.login-form input[type="text"], .login-form input[type="password"], .login-form textarea').on('focus', function() { 13 | $(this).removeClass('input-error'); 14 | }); 15 | 16 | $('.login-form').on('submit', function(e) { 17 | 18 | $(this).find('input[type="text"], input[type="password"], textarea').each(function(){ 19 | if( $(this).val() == "" ) { 20 | e.preventDefault(); 21 | $(this).addClass('input-error'); 22 | } 23 | else { 24 | $(this).removeClass('input-error'); 25 | } 26 | }); 27 | 28 | }); 29 | 30 | /* 31 | Registration form validation 32 | */ 33 | $('.registration-form input[type="text"], .registration-form textarea').on('focus', function() { 34 | $(this).removeClass('input-error'); 35 | }); 36 | 37 | $('.registration-form').on('submit', function(e) { 38 | 39 | $(this).find('input[type="text"], textarea').each(function(){ 40 | if( $(this).val() == "" ) { 41 | e.preventDefault(); 42 | $(this).addClass('input-error'); 43 | } 44 | else { 45 | $(this).removeClass('input-error'); 46 | } 47 | }); 48 | 49 | }); 50 | 51 | 52 | }); 53 | -------------------------------------------------------------------------------- /Project/WSTester/build.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | Builds, tests, and runs the project WSTester. 12 | 13 | 73 | 74 | -------------------------------------------------------------------------------- /Project/WSTester/build/built-jar.properties: -------------------------------------------------------------------------------- 1 | #Tue, 03 Jul 2018 01:22:52 +0500 2 | 3 | 4 | D\:\\FAST\\5th\ Semester\ \ \ \ (Fall\ 2017)\\Web\ Programming\\Project\\Flight\ Booking\ System\\Project\\WSTester= 5 | -------------------------------------------------------------------------------- /Project/WSTester/build/classes/META-INF/jax-ws-catalog.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /Project/WSTester/build/classes/META-INF/wsdl/localhost_8084/TurkishAirlines/PriceAndSeats.wsdl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | -------------------------------------------------------------------------------- /Project/WSTester/build/classes/META-INF/wsdl/localhost_8084/TurkishAirlines/PriceAndSeats.xsd_1.xsd: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | -------------------------------------------------------------------------------- /Project/WSTester/build/classes/webservices/GetAvailableSeats.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harismuneer/Flight-Booking-System-JavaServlets_App/140e66e2635b3139919ca69e22a0abdac6cc0ffd/Project/WSTester/build/classes/webservices/GetAvailableSeats.class -------------------------------------------------------------------------------- /Project/WSTester/build/classes/webservices/GetAvailableSeatsResponse.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harismuneer/Flight-Booking-System-JavaServlets_App/140e66e2635b3139919ca69e22a0abdac6cc0ffd/Project/WSTester/build/classes/webservices/GetAvailableSeatsResponse.class -------------------------------------------------------------------------------- /Project/WSTester/build/classes/webservices/GetSeatPrice.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harismuneer/Flight-Booking-System-JavaServlets_App/140e66e2635b3139919ca69e22a0abdac6cc0ffd/Project/WSTester/build/classes/webservices/GetSeatPrice.class -------------------------------------------------------------------------------- /Project/WSTester/build/classes/webservices/GetSeatPriceResponse.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harismuneer/Flight-Booking-System-JavaServlets_App/140e66e2635b3139919ca69e22a0abdac6cc0ffd/Project/WSTester/build/classes/webservices/GetSeatPriceResponse.class -------------------------------------------------------------------------------- /Project/WSTester/build/classes/webservices/ObjectFactory.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harismuneer/Flight-Booking-System-JavaServlets_App/140e66e2635b3139919ca69e22a0abdac6cc0ffd/Project/WSTester/build/classes/webservices/ObjectFactory.class -------------------------------------------------------------------------------- /Project/WSTester/build/classes/webservices/PriceAndSeats.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harismuneer/Flight-Booking-System-JavaServlets_App/140e66e2635b3139919ca69e22a0abdac6cc0ffd/Project/WSTester/build/classes/webservices/PriceAndSeats.class -------------------------------------------------------------------------------- /Project/WSTester/build/classes/webservices/PriceAndSeats_Service.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harismuneer/Flight-Booking-System-JavaServlets_App/140e66e2635b3139919ca69e22a0abdac6cc0ffd/Project/WSTester/build/classes/webservices/PriceAndSeats_Service.class -------------------------------------------------------------------------------- /Project/WSTester/build/classes/webservices/package-info.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harismuneer/Flight-Booking-System-JavaServlets_App/140e66e2635b3139919ca69e22a0abdac6cc0ffd/Project/WSTester/build/classes/webservices/package-info.class -------------------------------------------------------------------------------- /Project/WSTester/build/classes/wstester/Main.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harismuneer/Flight-Booking-System-JavaServlets_App/140e66e2635b3139919ca69e22a0abdac6cc0ffd/Project/WSTester/build/classes/wstester/Main.class -------------------------------------------------------------------------------- /Project/WSTester/build/generated-sources/jax-ws/webservices/GetAvailableSeats.java: -------------------------------------------------------------------------------- 1 | 2 | package webservices; 3 | 4 | import javax.xml.bind.annotation.XmlAccessType; 5 | import javax.xml.bind.annotation.XmlAccessorType; 6 | import javax.xml.bind.annotation.XmlType; 7 | 8 | 9 | /** 10 | *

Java class for GetAvailableSeats complex type. 11 | * 12 | *

The following schema fragment specifies the expected content contained within this class. 13 | * 14 | *

15 |  * <complexType name="GetAvailableSeats">
16 |  *   <complexContent>
17 |  *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
18 |  *       <sequence>
19 |  *         <element name="flightNumber" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
20 |  *         <element name="arrivalDate" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
21 |  *       </sequence>
22 |  *     </restriction>
23 |  *   </complexContent>
24 |  * </complexType>
25 |  * 
26 | * 27 | * 28 | */ 29 | @XmlAccessorType(XmlAccessType.FIELD) 30 | @XmlType(name = "GetAvailableSeats", propOrder = { 31 | "flightNumber", 32 | "arrivalDate" 33 | }) 34 | public class GetAvailableSeats { 35 | 36 | protected String flightNumber; 37 | protected String arrivalDate; 38 | 39 | /** 40 | * Gets the value of the flightNumber property. 41 | * 42 | * @return 43 | * possible object is 44 | * {@link String } 45 | * 46 | */ 47 | public String getFlightNumber() { 48 | return flightNumber; 49 | } 50 | 51 | /** 52 | * Sets the value of the flightNumber property. 53 | * 54 | * @param value 55 | * allowed object is 56 | * {@link String } 57 | * 58 | */ 59 | public void setFlightNumber(String value) { 60 | this.flightNumber = value; 61 | } 62 | 63 | /** 64 | * Gets the value of the arrivalDate property. 65 | * 66 | * @return 67 | * possible object is 68 | * {@link String } 69 | * 70 | */ 71 | public String getArrivalDate() { 72 | return arrivalDate; 73 | } 74 | 75 | /** 76 | * Sets the value of the arrivalDate property. 77 | * 78 | * @param value 79 | * allowed object is 80 | * {@link String } 81 | * 82 | */ 83 | public void setArrivalDate(String value) { 84 | this.arrivalDate = value; 85 | } 86 | 87 | } 88 | -------------------------------------------------------------------------------- /Project/WSTester/build/generated-sources/jax-ws/webservices/GetAvailableSeatsResponse.java: -------------------------------------------------------------------------------- 1 | 2 | package webservices; 3 | 4 | import javax.xml.bind.annotation.XmlAccessType; 5 | import javax.xml.bind.annotation.XmlAccessorType; 6 | import javax.xml.bind.annotation.XmlElement; 7 | import javax.xml.bind.annotation.XmlType; 8 | 9 | 10 | /** 11 | *

Java class for GetAvailableSeatsResponse complex type. 12 | * 13 | *

The following schema fragment specifies the expected content contained within this class. 14 | * 15 | *

16 |  * <complexType name="GetAvailableSeatsResponse">
17 |  *   <complexContent>
18 |  *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
19 |  *       <sequence>
20 |  *         <element name="return" type="{http://www.w3.org/2001/XMLSchema}int"/>
21 |  *       </sequence>
22 |  *     </restriction>
23 |  *   </complexContent>
24 |  * </complexType>
25 |  * 
26 | * 27 | * 28 | */ 29 | @XmlAccessorType(XmlAccessType.FIELD) 30 | @XmlType(name = "GetAvailableSeatsResponse", propOrder = { 31 | "_return" 32 | }) 33 | public class GetAvailableSeatsResponse { 34 | 35 | @XmlElement(name = "return") 36 | protected int _return; 37 | 38 | /** 39 | * Gets the value of the return property. 40 | * 41 | */ 42 | public int getReturn() { 43 | return _return; 44 | } 45 | 46 | /** 47 | * Sets the value of the return property. 48 | * 49 | */ 50 | public void setReturn(int value) { 51 | this._return = value; 52 | } 53 | 54 | } 55 | -------------------------------------------------------------------------------- /Project/WSTester/build/generated-sources/jax-ws/webservices/GetSeatPrice.java: -------------------------------------------------------------------------------- 1 | 2 | package webservices; 3 | 4 | import javax.xml.bind.annotation.XmlAccessType; 5 | import javax.xml.bind.annotation.XmlAccessorType; 6 | import javax.xml.bind.annotation.XmlType; 7 | 8 | 9 | /** 10 | *

Java class for GetSeatPrice complex type. 11 | * 12 | *

The following schema fragment specifies the expected content contained within this class. 13 | * 14 | *

15 |  * <complexType name="GetSeatPrice">
16 |  *   <complexContent>
17 |  *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
18 |  *       <sequence>
19 |  *         <element name="origin" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
20 |  *         <element name="destination" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
21 |  *       </sequence>
22 |  *     </restriction>
23 |  *   </complexContent>
24 |  * </complexType>
25 |  * 
26 | * 27 | * 28 | */ 29 | @XmlAccessorType(XmlAccessType.FIELD) 30 | @XmlType(name = "GetSeatPrice", propOrder = { 31 | "origin", 32 | "destination" 33 | }) 34 | public class GetSeatPrice { 35 | 36 | protected String origin; 37 | protected String destination; 38 | 39 | /** 40 | * Gets the value of the origin property. 41 | * 42 | * @return 43 | * possible object is 44 | * {@link String } 45 | * 46 | */ 47 | public String getOrigin() { 48 | return origin; 49 | } 50 | 51 | /** 52 | * Sets the value of the origin property. 53 | * 54 | * @param value 55 | * allowed object is 56 | * {@link String } 57 | * 58 | */ 59 | public void setOrigin(String value) { 60 | this.origin = value; 61 | } 62 | 63 | /** 64 | * Gets the value of the destination property. 65 | * 66 | * @return 67 | * possible object is 68 | * {@link String } 69 | * 70 | */ 71 | public String getDestination() { 72 | return destination; 73 | } 74 | 75 | /** 76 | * Sets the value of the destination property. 77 | * 78 | * @param value 79 | * allowed object is 80 | * {@link String } 81 | * 82 | */ 83 | public void setDestination(String value) { 84 | this.destination = value; 85 | } 86 | 87 | } 88 | -------------------------------------------------------------------------------- /Project/WSTester/build/generated-sources/jax-ws/webservices/GetSeatPriceResponse.java: -------------------------------------------------------------------------------- 1 | 2 | package webservices; 3 | 4 | import javax.xml.bind.annotation.XmlAccessType; 5 | import javax.xml.bind.annotation.XmlAccessorType; 6 | import javax.xml.bind.annotation.XmlElement; 7 | import javax.xml.bind.annotation.XmlType; 8 | 9 | 10 | /** 11 | *

Java class for GetSeatPriceResponse complex type. 12 | * 13 | *

The following schema fragment specifies the expected content contained within this class. 14 | * 15 | *

16 |  * <complexType name="GetSeatPriceResponse">
17 |  *   <complexContent>
18 |  *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
19 |  *       <sequence>
20 |  *         <element name="return" type="{http://www.w3.org/2001/XMLSchema}int"/>
21 |  *       </sequence>
22 |  *     </restriction>
23 |  *   </complexContent>
24 |  * </complexType>
25 |  * 
26 | * 27 | * 28 | */ 29 | @XmlAccessorType(XmlAccessType.FIELD) 30 | @XmlType(name = "GetSeatPriceResponse", propOrder = { 31 | "_return" 32 | }) 33 | public class GetSeatPriceResponse { 34 | 35 | @XmlElement(name = "return") 36 | protected int _return; 37 | 38 | /** 39 | * Gets the value of the return property. 40 | * 41 | */ 42 | public int getReturn() { 43 | return _return; 44 | } 45 | 46 | /** 47 | * Sets the value of the return property. 48 | * 49 | */ 50 | public void setReturn(int value) { 51 | this._return = value; 52 | } 53 | 54 | } 55 | -------------------------------------------------------------------------------- /Project/WSTester/build/generated-sources/jax-ws/webservices/ObjectFactory.java: -------------------------------------------------------------------------------- 1 | 2 | package webservices; 3 | 4 | import javax.xml.bind.JAXBElement; 5 | import javax.xml.bind.annotation.XmlElementDecl; 6 | import javax.xml.bind.annotation.XmlRegistry; 7 | import javax.xml.namespace.QName; 8 | 9 | 10 | /** 11 | * This object contains factory methods for each 12 | * Java content interface and Java element interface 13 | * generated in the webservices package. 14 | *

An ObjectFactory allows you to programatically 15 | * construct new instances of the Java representation 16 | * for XML content. The Java representation of XML 17 | * content can consist of schema derived interfaces 18 | * and classes representing the binding of schema 19 | * type definitions, element declarations and model 20 | * groups. Factory methods for each of these are 21 | * provided in this class. 22 | * 23 | */ 24 | @XmlRegistry 25 | public class ObjectFactory { 26 | 27 | private final static QName _GetAvailableSeatsResponse_QNAME = new QName("http://webservices/", "GetAvailableSeatsResponse"); 28 | private final static QName _GetSeatPrice_QNAME = new QName("http://webservices/", "GetSeatPrice"); 29 | private final static QName _GetSeatPriceResponse_QNAME = new QName("http://webservices/", "GetSeatPriceResponse"); 30 | private final static QName _GetAvailableSeats_QNAME = new QName("http://webservices/", "GetAvailableSeats"); 31 | 32 | /** 33 | * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: webservices 34 | * 35 | */ 36 | public ObjectFactory() { 37 | } 38 | 39 | /** 40 | * Create an instance of {@link GetAvailableSeats } 41 | * 42 | */ 43 | public GetAvailableSeats createGetAvailableSeats() { 44 | return new GetAvailableSeats(); 45 | } 46 | 47 | /** 48 | * Create an instance of {@link GetSeatPriceResponse } 49 | * 50 | */ 51 | public GetSeatPriceResponse createGetSeatPriceResponse() { 52 | return new GetSeatPriceResponse(); 53 | } 54 | 55 | /** 56 | * Create an instance of {@link GetSeatPrice } 57 | * 58 | */ 59 | public GetSeatPrice createGetSeatPrice() { 60 | return new GetSeatPrice(); 61 | } 62 | 63 | /** 64 | * Create an instance of {@link GetAvailableSeatsResponse } 65 | * 66 | */ 67 | public GetAvailableSeatsResponse createGetAvailableSeatsResponse() { 68 | return new GetAvailableSeatsResponse(); 69 | } 70 | 71 | /** 72 | * Create an instance of {@link JAXBElement }{@code <}{@link GetAvailableSeatsResponse }{@code >}} 73 | * 74 | */ 75 | @XmlElementDecl(namespace = "http://webservices/", name = "GetAvailableSeatsResponse") 76 | public JAXBElement createGetAvailableSeatsResponse(GetAvailableSeatsResponse value) { 77 | return new JAXBElement(_GetAvailableSeatsResponse_QNAME, GetAvailableSeatsResponse.class, null, value); 78 | } 79 | 80 | /** 81 | * Create an instance of {@link JAXBElement }{@code <}{@link GetSeatPrice }{@code >}} 82 | * 83 | */ 84 | @XmlElementDecl(namespace = "http://webservices/", name = "GetSeatPrice") 85 | public JAXBElement createGetSeatPrice(GetSeatPrice value) { 86 | return new JAXBElement(_GetSeatPrice_QNAME, GetSeatPrice.class, null, value); 87 | } 88 | 89 | /** 90 | * Create an instance of {@link JAXBElement }{@code <}{@link GetSeatPriceResponse }{@code >}} 91 | * 92 | */ 93 | @XmlElementDecl(namespace = "http://webservices/", name = "GetSeatPriceResponse") 94 | public JAXBElement createGetSeatPriceResponse(GetSeatPriceResponse value) { 95 | return new JAXBElement(_GetSeatPriceResponse_QNAME, GetSeatPriceResponse.class, null, value); 96 | } 97 | 98 | /** 99 | * Create an instance of {@link JAXBElement }{@code <}{@link GetAvailableSeats }{@code >}} 100 | * 101 | */ 102 | @XmlElementDecl(namespace = "http://webservices/", name = "GetAvailableSeats") 103 | public JAXBElement createGetAvailableSeats(GetAvailableSeats value) { 104 | return new JAXBElement(_GetAvailableSeats_QNAME, GetAvailableSeats.class, null, value); 105 | } 106 | 107 | } 108 | -------------------------------------------------------------------------------- /Project/WSTester/build/generated-sources/jax-ws/webservices/PriceAndSeats.java: -------------------------------------------------------------------------------- 1 | 2 | package webservices; 3 | 4 | import javax.jws.WebMethod; 5 | import javax.jws.WebParam; 6 | import javax.jws.WebResult; 7 | import javax.jws.WebService; 8 | import javax.xml.bind.annotation.XmlSeeAlso; 9 | import javax.xml.ws.Action; 10 | import javax.xml.ws.RequestWrapper; 11 | import javax.xml.ws.ResponseWrapper; 12 | 13 | 14 | /** 15 | * This class was generated by the JAX-WS RI. 16 | * JAX-WS RI 2.2.6-1b01 17 | * Generated source version: 2.2 18 | * 19 | */ 20 | @WebService(name = "PriceAndSeats", targetNamespace = "http://webservices/") 21 | @XmlSeeAlso({ 22 | ObjectFactory.class 23 | }) 24 | public interface PriceAndSeats { 25 | 26 | 27 | /** 28 | * 29 | * @param flightNumber 30 | * @param arrivalDate 31 | * @return 32 | * returns int 33 | */ 34 | @WebMethod(operationName = "GetAvailableSeats") 35 | @WebResult(targetNamespace = "") 36 | @RequestWrapper(localName = "GetAvailableSeats", targetNamespace = "http://webservices/", className = "webservices.GetAvailableSeats") 37 | @ResponseWrapper(localName = "GetAvailableSeatsResponse", targetNamespace = "http://webservices/", className = "webservices.GetAvailableSeatsResponse") 38 | @Action(input = "http://webservices/PriceAndSeats/GetAvailableSeatsRequest", output = "http://webservices/PriceAndSeats/GetAvailableSeatsResponse") 39 | public int getAvailableSeats( 40 | @WebParam(name = "flightNumber", targetNamespace = "") 41 | String flightNumber, 42 | @WebParam(name = "arrivalDate", targetNamespace = "") 43 | String arrivalDate); 44 | 45 | /** 46 | * 47 | * @param origin 48 | * @param destination 49 | * @return 50 | * returns int 51 | */ 52 | @WebMethod(operationName = "GetSeatPrice") 53 | @WebResult(targetNamespace = "") 54 | @RequestWrapper(localName = "GetSeatPrice", targetNamespace = "http://webservices/", className = "webservices.GetSeatPrice") 55 | @ResponseWrapper(localName = "GetSeatPriceResponse", targetNamespace = "http://webservices/", className = "webservices.GetSeatPriceResponse") 56 | @Action(input = "http://webservices/PriceAndSeats/GetSeatPriceRequest", output = "http://webservices/PriceAndSeats/GetSeatPriceResponse") 57 | public int getSeatPrice( 58 | @WebParam(name = "origin", targetNamespace = "") 59 | String origin, 60 | @WebParam(name = "destination", targetNamespace = "") 61 | String destination); 62 | 63 | } 64 | -------------------------------------------------------------------------------- /Project/WSTester/build/generated-sources/jax-ws/webservices/PriceAndSeats_Service.java: -------------------------------------------------------------------------------- 1 | 2 | package webservices; 3 | 4 | import java.net.MalformedURLException; 5 | import java.net.URL; 6 | import javax.xml.namespace.QName; 7 | import javax.xml.ws.Service; 8 | import javax.xml.ws.WebEndpoint; 9 | import javax.xml.ws.WebServiceClient; 10 | import javax.xml.ws.WebServiceException; 11 | import javax.xml.ws.WebServiceFeature; 12 | 13 | 14 | /** 15 | * This class was generated by the JAX-WS RI. 16 | * JAX-WS RI 2.2.6-1b01 17 | * Generated source version: 2.2 18 | * 19 | */ 20 | @WebServiceClient(name = "PriceAndSeats", targetNamespace = "http://webservices/", wsdlLocation = "http://localhost:8084/TurkishAirlines/PriceAndSeats?wsdl") 21 | public class PriceAndSeats_Service 22 | extends Service 23 | { 24 | 25 | private final static URL PRICEANDSEATS_WSDL_LOCATION; 26 | private final static WebServiceException PRICEANDSEATS_EXCEPTION; 27 | private final static QName PRICEANDSEATS_QNAME = new QName("http://webservices/", "PriceAndSeats"); 28 | 29 | static { 30 | URL url = null; 31 | WebServiceException e = null; 32 | try { 33 | url = new URL("http://localhost:8084/TurkishAirlines/PriceAndSeats?wsdl"); 34 | } catch (MalformedURLException ex) { 35 | e = new WebServiceException(ex); 36 | } 37 | PRICEANDSEATS_WSDL_LOCATION = url; 38 | PRICEANDSEATS_EXCEPTION = e; 39 | } 40 | 41 | public PriceAndSeats_Service() { 42 | super(__getWsdlLocation(), PRICEANDSEATS_QNAME); 43 | } 44 | 45 | public PriceAndSeats_Service(WebServiceFeature... features) { 46 | super(__getWsdlLocation(), PRICEANDSEATS_QNAME, features); 47 | } 48 | 49 | public PriceAndSeats_Service(URL wsdlLocation) { 50 | super(wsdlLocation, PRICEANDSEATS_QNAME); 51 | } 52 | 53 | public PriceAndSeats_Service(URL wsdlLocation, WebServiceFeature... features) { 54 | super(wsdlLocation, PRICEANDSEATS_QNAME, features); 55 | } 56 | 57 | public PriceAndSeats_Service(URL wsdlLocation, QName serviceName) { 58 | super(wsdlLocation, serviceName); 59 | } 60 | 61 | public PriceAndSeats_Service(URL wsdlLocation, QName serviceName, WebServiceFeature... features) { 62 | super(wsdlLocation, serviceName, features); 63 | } 64 | 65 | /** 66 | * 67 | * @return 68 | * returns PriceAndSeats 69 | */ 70 | @WebEndpoint(name = "PriceAndSeatsPort") 71 | public PriceAndSeats getPriceAndSeatsPort() { 72 | return super.getPort(new QName("http://webservices/", "PriceAndSeatsPort"), PriceAndSeats.class); 73 | } 74 | 75 | /** 76 | * 77 | * @param features 78 | * A list of {@link javax.xml.ws.WebServiceFeature} to configure on the proxy. Supported features not in the features parameter will have their default values. 79 | * @return 80 | * returns PriceAndSeats 81 | */ 82 | @WebEndpoint(name = "PriceAndSeatsPort") 83 | public PriceAndSeats getPriceAndSeatsPort(WebServiceFeature... features) { 84 | return super.getPort(new QName("http://webservices/", "PriceAndSeatsPort"), PriceAndSeats.class, features); 85 | } 86 | 87 | private static URL __getWsdlLocation() { 88 | if (PRICEANDSEATS_EXCEPTION!= null) { 89 | throw PRICEANDSEATS_EXCEPTION; 90 | } 91 | return PRICEANDSEATS_WSDL_LOCATION; 92 | } 93 | 94 | } 95 | -------------------------------------------------------------------------------- /Project/WSTester/build/generated-sources/jax-ws/webservices/package-info.java: -------------------------------------------------------------------------------- 1 | @javax.xml.bind.annotation.XmlSchema(namespace = "http://webservices/") 2 | package webservices; 3 | -------------------------------------------------------------------------------- /Project/WSTester/build/generated/jax-wsCache/PriceAndSeats/webservices/GetAvailableSeats.java: -------------------------------------------------------------------------------- 1 | 2 | package webservices; 3 | 4 | import javax.xml.bind.annotation.XmlAccessType; 5 | import javax.xml.bind.annotation.XmlAccessorType; 6 | import javax.xml.bind.annotation.XmlType; 7 | 8 | 9 | /** 10 | *

Java class for GetAvailableSeats complex type. 11 | * 12 | *

The following schema fragment specifies the expected content contained within this class. 13 | * 14 | *

15 |  * <complexType name="GetAvailableSeats">
16 |  *   <complexContent>
17 |  *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
18 |  *       <sequence>
19 |  *         <element name="flightNumber" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
20 |  *         <element name="arrivalDate" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
21 |  *       </sequence>
22 |  *     </restriction>
23 |  *   </complexContent>
24 |  * </complexType>
25 |  * 
26 | * 27 | * 28 | */ 29 | @XmlAccessorType(XmlAccessType.FIELD) 30 | @XmlType(name = "GetAvailableSeats", propOrder = { 31 | "flightNumber", 32 | "arrivalDate" 33 | }) 34 | public class GetAvailableSeats { 35 | 36 | protected String flightNumber; 37 | protected String arrivalDate; 38 | 39 | /** 40 | * Gets the value of the flightNumber property. 41 | * 42 | * @return 43 | * possible object is 44 | * {@link String } 45 | * 46 | */ 47 | public String getFlightNumber() { 48 | return flightNumber; 49 | } 50 | 51 | /** 52 | * Sets the value of the flightNumber property. 53 | * 54 | * @param value 55 | * allowed object is 56 | * {@link String } 57 | * 58 | */ 59 | public void setFlightNumber(String value) { 60 | this.flightNumber = value; 61 | } 62 | 63 | /** 64 | * Gets the value of the arrivalDate property. 65 | * 66 | * @return 67 | * possible object is 68 | * {@link String } 69 | * 70 | */ 71 | public String getArrivalDate() { 72 | return arrivalDate; 73 | } 74 | 75 | /** 76 | * Sets the value of the arrivalDate property. 77 | * 78 | * @param value 79 | * allowed object is 80 | * {@link String } 81 | * 82 | */ 83 | public void setArrivalDate(String value) { 84 | this.arrivalDate = value; 85 | } 86 | 87 | } 88 | -------------------------------------------------------------------------------- /Project/WSTester/build/generated/jax-wsCache/PriceAndSeats/webservices/GetAvailableSeatsResponse.java: -------------------------------------------------------------------------------- 1 | 2 | package webservices; 3 | 4 | import javax.xml.bind.annotation.XmlAccessType; 5 | import javax.xml.bind.annotation.XmlAccessorType; 6 | import javax.xml.bind.annotation.XmlElement; 7 | import javax.xml.bind.annotation.XmlType; 8 | 9 | 10 | /** 11 | *

Java class for GetAvailableSeatsResponse complex type. 12 | * 13 | *

The following schema fragment specifies the expected content contained within this class. 14 | * 15 | *

16 |  * <complexType name="GetAvailableSeatsResponse">
17 |  *   <complexContent>
18 |  *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
19 |  *       <sequence>
20 |  *         <element name="return" type="{http://www.w3.org/2001/XMLSchema}int"/>
21 |  *       </sequence>
22 |  *     </restriction>
23 |  *   </complexContent>
24 |  * </complexType>
25 |  * 
26 | * 27 | * 28 | */ 29 | @XmlAccessorType(XmlAccessType.FIELD) 30 | @XmlType(name = "GetAvailableSeatsResponse", propOrder = { 31 | "_return" 32 | }) 33 | public class GetAvailableSeatsResponse { 34 | 35 | @XmlElement(name = "return") 36 | protected int _return; 37 | 38 | /** 39 | * Gets the value of the return property. 40 | * 41 | */ 42 | public int getReturn() { 43 | return _return; 44 | } 45 | 46 | /** 47 | * Sets the value of the return property. 48 | * 49 | */ 50 | public void setReturn(int value) { 51 | this._return = value; 52 | } 53 | 54 | } 55 | -------------------------------------------------------------------------------- /Project/WSTester/build/generated/jax-wsCache/PriceAndSeats/webservices/GetSeatPrice.java: -------------------------------------------------------------------------------- 1 | 2 | package webservices; 3 | 4 | import javax.xml.bind.annotation.XmlAccessType; 5 | import javax.xml.bind.annotation.XmlAccessorType; 6 | import javax.xml.bind.annotation.XmlType; 7 | 8 | 9 | /** 10 | *

Java class for GetSeatPrice complex type. 11 | * 12 | *

The following schema fragment specifies the expected content contained within this class. 13 | * 14 | *

15 |  * <complexType name="GetSeatPrice">
16 |  *   <complexContent>
17 |  *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
18 |  *       <sequence>
19 |  *         <element name="origin" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
20 |  *         <element name="destination" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
21 |  *       </sequence>
22 |  *     </restriction>
23 |  *   </complexContent>
24 |  * </complexType>
25 |  * 
26 | * 27 | * 28 | */ 29 | @XmlAccessorType(XmlAccessType.FIELD) 30 | @XmlType(name = "GetSeatPrice", propOrder = { 31 | "origin", 32 | "destination" 33 | }) 34 | public class GetSeatPrice { 35 | 36 | protected String origin; 37 | protected String destination; 38 | 39 | /** 40 | * Gets the value of the origin property. 41 | * 42 | * @return 43 | * possible object is 44 | * {@link String } 45 | * 46 | */ 47 | public String getOrigin() { 48 | return origin; 49 | } 50 | 51 | /** 52 | * Sets the value of the origin property. 53 | * 54 | * @param value 55 | * allowed object is 56 | * {@link String } 57 | * 58 | */ 59 | public void setOrigin(String value) { 60 | this.origin = value; 61 | } 62 | 63 | /** 64 | * Gets the value of the destination property. 65 | * 66 | * @return 67 | * possible object is 68 | * {@link String } 69 | * 70 | */ 71 | public String getDestination() { 72 | return destination; 73 | } 74 | 75 | /** 76 | * Sets the value of the destination property. 77 | * 78 | * @param value 79 | * allowed object is 80 | * {@link String } 81 | * 82 | */ 83 | public void setDestination(String value) { 84 | this.destination = value; 85 | } 86 | 87 | } 88 | -------------------------------------------------------------------------------- /Project/WSTester/build/generated/jax-wsCache/PriceAndSeats/webservices/GetSeatPriceResponse.java: -------------------------------------------------------------------------------- 1 | 2 | package webservices; 3 | 4 | import javax.xml.bind.annotation.XmlAccessType; 5 | import javax.xml.bind.annotation.XmlAccessorType; 6 | import javax.xml.bind.annotation.XmlElement; 7 | import javax.xml.bind.annotation.XmlType; 8 | 9 | 10 | /** 11 | *

Java class for GetSeatPriceResponse complex type. 12 | * 13 | *

The following schema fragment specifies the expected content contained within this class. 14 | * 15 | *

16 |  * <complexType name="GetSeatPriceResponse">
17 |  *   <complexContent>
18 |  *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
19 |  *       <sequence>
20 |  *         <element name="return" type="{http://www.w3.org/2001/XMLSchema}int"/>
21 |  *       </sequence>
22 |  *     </restriction>
23 |  *   </complexContent>
24 |  * </complexType>
25 |  * 
26 | * 27 | * 28 | */ 29 | @XmlAccessorType(XmlAccessType.FIELD) 30 | @XmlType(name = "GetSeatPriceResponse", propOrder = { 31 | "_return" 32 | }) 33 | public class GetSeatPriceResponse { 34 | 35 | @XmlElement(name = "return") 36 | protected int _return; 37 | 38 | /** 39 | * Gets the value of the return property. 40 | * 41 | */ 42 | public int getReturn() { 43 | return _return; 44 | } 45 | 46 | /** 47 | * Sets the value of the return property. 48 | * 49 | */ 50 | public void setReturn(int value) { 51 | this._return = value; 52 | } 53 | 54 | } 55 | -------------------------------------------------------------------------------- /Project/WSTester/build/generated/jax-wsCache/PriceAndSeats/webservices/ObjectFactory.java: -------------------------------------------------------------------------------- 1 | 2 | package webservices; 3 | 4 | import javax.xml.bind.JAXBElement; 5 | import javax.xml.bind.annotation.XmlElementDecl; 6 | import javax.xml.bind.annotation.XmlRegistry; 7 | import javax.xml.namespace.QName; 8 | 9 | 10 | /** 11 | * This object contains factory methods for each 12 | * Java content interface and Java element interface 13 | * generated in the webservices package. 14 | *

An ObjectFactory allows you to programatically 15 | * construct new instances of the Java representation 16 | * for XML content. The Java representation of XML 17 | * content can consist of schema derived interfaces 18 | * and classes representing the binding of schema 19 | * type definitions, element declarations and model 20 | * groups. Factory methods for each of these are 21 | * provided in this class. 22 | * 23 | */ 24 | @XmlRegistry 25 | public class ObjectFactory { 26 | 27 | private final static QName _GetAvailableSeatsResponse_QNAME = new QName("http://webservices/", "GetAvailableSeatsResponse"); 28 | private final static QName _GetSeatPrice_QNAME = new QName("http://webservices/", "GetSeatPrice"); 29 | private final static QName _GetSeatPriceResponse_QNAME = new QName("http://webservices/", "GetSeatPriceResponse"); 30 | private final static QName _GetAvailableSeats_QNAME = new QName("http://webservices/", "GetAvailableSeats"); 31 | 32 | /** 33 | * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: webservices 34 | * 35 | */ 36 | public ObjectFactory() { 37 | } 38 | 39 | /** 40 | * Create an instance of {@link GetAvailableSeats } 41 | * 42 | */ 43 | public GetAvailableSeats createGetAvailableSeats() { 44 | return new GetAvailableSeats(); 45 | } 46 | 47 | /** 48 | * Create an instance of {@link GetSeatPriceResponse } 49 | * 50 | */ 51 | public GetSeatPriceResponse createGetSeatPriceResponse() { 52 | return new GetSeatPriceResponse(); 53 | } 54 | 55 | /** 56 | * Create an instance of {@link GetSeatPrice } 57 | * 58 | */ 59 | public GetSeatPrice createGetSeatPrice() { 60 | return new GetSeatPrice(); 61 | } 62 | 63 | /** 64 | * Create an instance of {@link GetAvailableSeatsResponse } 65 | * 66 | */ 67 | public GetAvailableSeatsResponse createGetAvailableSeatsResponse() { 68 | return new GetAvailableSeatsResponse(); 69 | } 70 | 71 | /** 72 | * Create an instance of {@link JAXBElement }{@code <}{@link GetAvailableSeatsResponse }{@code >}} 73 | * 74 | */ 75 | @XmlElementDecl(namespace = "http://webservices/", name = "GetAvailableSeatsResponse") 76 | public JAXBElement createGetAvailableSeatsResponse(GetAvailableSeatsResponse value) { 77 | return new JAXBElement(_GetAvailableSeatsResponse_QNAME, GetAvailableSeatsResponse.class, null, value); 78 | } 79 | 80 | /** 81 | * Create an instance of {@link JAXBElement }{@code <}{@link GetSeatPrice }{@code >}} 82 | * 83 | */ 84 | @XmlElementDecl(namespace = "http://webservices/", name = "GetSeatPrice") 85 | public JAXBElement createGetSeatPrice(GetSeatPrice value) { 86 | return new JAXBElement(_GetSeatPrice_QNAME, GetSeatPrice.class, null, value); 87 | } 88 | 89 | /** 90 | * Create an instance of {@link JAXBElement }{@code <}{@link GetSeatPriceResponse }{@code >}} 91 | * 92 | */ 93 | @XmlElementDecl(namespace = "http://webservices/", name = "GetSeatPriceResponse") 94 | public JAXBElement createGetSeatPriceResponse(GetSeatPriceResponse value) { 95 | return new JAXBElement(_GetSeatPriceResponse_QNAME, GetSeatPriceResponse.class, null, value); 96 | } 97 | 98 | /** 99 | * Create an instance of {@link JAXBElement }{@code <}{@link GetAvailableSeats }{@code >}} 100 | * 101 | */ 102 | @XmlElementDecl(namespace = "http://webservices/", name = "GetAvailableSeats") 103 | public JAXBElement createGetAvailableSeats(GetAvailableSeats value) { 104 | return new JAXBElement(_GetAvailableSeats_QNAME, GetAvailableSeats.class, null, value); 105 | } 106 | 107 | } 108 | -------------------------------------------------------------------------------- /Project/WSTester/build/generated/jax-wsCache/PriceAndSeats/webservices/PriceAndSeats.java: -------------------------------------------------------------------------------- 1 | 2 | package webservices; 3 | 4 | import javax.jws.WebMethod; 5 | import javax.jws.WebParam; 6 | import javax.jws.WebResult; 7 | import javax.jws.WebService; 8 | import javax.xml.bind.annotation.XmlSeeAlso; 9 | import javax.xml.ws.Action; 10 | import javax.xml.ws.RequestWrapper; 11 | import javax.xml.ws.ResponseWrapper; 12 | 13 | 14 | /** 15 | * This class was generated by the JAX-WS RI. 16 | * JAX-WS RI 2.2.6-1b01 17 | * Generated source version: 2.2 18 | * 19 | */ 20 | @WebService(name = "PriceAndSeats", targetNamespace = "http://webservices/") 21 | @XmlSeeAlso({ 22 | ObjectFactory.class 23 | }) 24 | public interface PriceAndSeats { 25 | 26 | 27 | /** 28 | * 29 | * @param flightNumber 30 | * @param arrivalDate 31 | * @return 32 | * returns int 33 | */ 34 | @WebMethod(operationName = "GetAvailableSeats") 35 | @WebResult(targetNamespace = "") 36 | @RequestWrapper(localName = "GetAvailableSeats", targetNamespace = "http://webservices/", className = "webservices.GetAvailableSeats") 37 | @ResponseWrapper(localName = "GetAvailableSeatsResponse", targetNamespace = "http://webservices/", className = "webservices.GetAvailableSeatsResponse") 38 | @Action(input = "http://webservices/PriceAndSeats/GetAvailableSeatsRequest", output = "http://webservices/PriceAndSeats/GetAvailableSeatsResponse") 39 | public int getAvailableSeats( 40 | @WebParam(name = "flightNumber", targetNamespace = "") 41 | String flightNumber, 42 | @WebParam(name = "arrivalDate", targetNamespace = "") 43 | String arrivalDate); 44 | 45 | /** 46 | * 47 | * @param origin 48 | * @param destination 49 | * @return 50 | * returns int 51 | */ 52 | @WebMethod(operationName = "GetSeatPrice") 53 | @WebResult(targetNamespace = "") 54 | @RequestWrapper(localName = "GetSeatPrice", targetNamespace = "http://webservices/", className = "webservices.GetSeatPrice") 55 | @ResponseWrapper(localName = "GetSeatPriceResponse", targetNamespace = "http://webservices/", className = "webservices.GetSeatPriceResponse") 56 | @Action(input = "http://webservices/PriceAndSeats/GetSeatPriceRequest", output = "http://webservices/PriceAndSeats/GetSeatPriceResponse") 57 | public int getSeatPrice( 58 | @WebParam(name = "origin", targetNamespace = "") 59 | String origin, 60 | @WebParam(name = "destination", targetNamespace = "") 61 | String destination); 62 | 63 | } 64 | -------------------------------------------------------------------------------- /Project/WSTester/build/generated/jax-wsCache/PriceAndSeats/webservices/PriceAndSeats_Service.java: -------------------------------------------------------------------------------- 1 | 2 | package webservices; 3 | 4 | import java.net.MalformedURLException; 5 | import java.net.URL; 6 | import javax.xml.namespace.QName; 7 | import javax.xml.ws.Service; 8 | import javax.xml.ws.WebEndpoint; 9 | import javax.xml.ws.WebServiceClient; 10 | import javax.xml.ws.WebServiceException; 11 | import javax.xml.ws.WebServiceFeature; 12 | 13 | 14 | /** 15 | * This class was generated by the JAX-WS RI. 16 | * JAX-WS RI 2.2.6-1b01 17 | * Generated source version: 2.2 18 | * 19 | */ 20 | @WebServiceClient(name = "PriceAndSeats", targetNamespace = "http://webservices/", wsdlLocation = "http://localhost:8084/TurkishAirlines/PriceAndSeats?wsdl") 21 | public class PriceAndSeats_Service 22 | extends Service 23 | { 24 | 25 | private final static URL PRICEANDSEATS_WSDL_LOCATION; 26 | private final static WebServiceException PRICEANDSEATS_EXCEPTION; 27 | private final static QName PRICEANDSEATS_QNAME = new QName("http://webservices/", "PriceAndSeats"); 28 | 29 | static { 30 | URL url = null; 31 | WebServiceException e = null; 32 | try { 33 | url = new URL("http://localhost:8084/TurkishAirlines/PriceAndSeats?wsdl"); 34 | } catch (MalformedURLException ex) { 35 | e = new WebServiceException(ex); 36 | } 37 | PRICEANDSEATS_WSDL_LOCATION = url; 38 | PRICEANDSEATS_EXCEPTION = e; 39 | } 40 | 41 | public PriceAndSeats_Service() { 42 | super(__getWsdlLocation(), PRICEANDSEATS_QNAME); 43 | } 44 | 45 | public PriceAndSeats_Service(WebServiceFeature... features) { 46 | super(__getWsdlLocation(), PRICEANDSEATS_QNAME, features); 47 | } 48 | 49 | public PriceAndSeats_Service(URL wsdlLocation) { 50 | super(wsdlLocation, PRICEANDSEATS_QNAME); 51 | } 52 | 53 | public PriceAndSeats_Service(URL wsdlLocation, WebServiceFeature... features) { 54 | super(wsdlLocation, PRICEANDSEATS_QNAME, features); 55 | } 56 | 57 | public PriceAndSeats_Service(URL wsdlLocation, QName serviceName) { 58 | super(wsdlLocation, serviceName); 59 | } 60 | 61 | public PriceAndSeats_Service(URL wsdlLocation, QName serviceName, WebServiceFeature... features) { 62 | super(wsdlLocation, serviceName, features); 63 | } 64 | 65 | /** 66 | * 67 | * @return 68 | * returns PriceAndSeats 69 | */ 70 | @WebEndpoint(name = "PriceAndSeatsPort") 71 | public PriceAndSeats getPriceAndSeatsPort() { 72 | return super.getPort(new QName("http://webservices/", "PriceAndSeatsPort"), PriceAndSeats.class); 73 | } 74 | 75 | /** 76 | * 77 | * @param features 78 | * A list of {@link javax.xml.ws.WebServiceFeature} to configure on the proxy. Supported features not in the features parameter will have their default values. 79 | * @return 80 | * returns PriceAndSeats 81 | */ 82 | @WebEndpoint(name = "PriceAndSeatsPort") 83 | public PriceAndSeats getPriceAndSeatsPort(WebServiceFeature... features) { 84 | return super.getPort(new QName("http://webservices/", "PriceAndSeatsPort"), PriceAndSeats.class, features); 85 | } 86 | 87 | private static URL __getWsdlLocation() { 88 | if (PRICEANDSEATS_EXCEPTION!= null) { 89 | throw PRICEANDSEATS_EXCEPTION; 90 | } 91 | return PRICEANDSEATS_WSDL_LOCATION; 92 | } 93 | 94 | } 95 | -------------------------------------------------------------------------------- /Project/WSTester/build/generated/jax-wsCache/PriceAndSeats/webservices/package-info.java: -------------------------------------------------------------------------------- 1 | @javax.xml.bind.annotation.XmlSchema(namespace = "http://webservices/") 2 | package webservices; 3 | -------------------------------------------------------------------------------- /Project/WSTester/catalog.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /Project/WSTester/manifest.mf: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | X-COMMENT: Main-Class will be added automatically by build 3 | 4 | -------------------------------------------------------------------------------- /Project/WSTester/nbproject/genfiles.properties: -------------------------------------------------------------------------------- 1 | build.xml.data.CRC32=442f340d 2 | build.xml.script.CRC32=de0acec2 3 | build.xml.stylesheet.CRC32=8064a381@1.80.1.48 4 | # This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. 5 | # Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. 6 | nbproject/build-impl.xml.data.CRC32=442f340d 7 | nbproject/build-impl.xml.script.CRC32=b9470d2e 8 | nbproject/build-impl.xml.stylesheet.CRC32=830a3534@1.80.1.48 9 | -------------------------------------------------------------------------------- /Project/WSTester/nbproject/jax-ws.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | http://localhost:8084/TurkishAirlines/PriceAndSeats?wsdl 7 | localhost_8084/TurkishAirlines/PriceAndSeats.wsdl 8 | webservices 9 | catalog.xml 10 | 11 | 12 | extension 13 | true 14 | 15 | 16 | verbose 17 | true 18 | 19 | 20 | fork 21 | false 22 | 23 | 24 | wsdlLocation 25 | http://localhost:8084/TurkishAirlines/PriceAndSeats?wsdl 26 | 27 | 28 | xnocompile 29 | true 30 | 31 | 32 | xendorsed 33 | true 34 | 35 | 36 | 37 | 38 | 39 | -------------------------------------------------------------------------------- /Project/WSTester/nbproject/jaxws-build.xml: -------------------------------------------------------------------------------- 1 | 8 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | -------------------------------------------------------------------------------- /Project/WSTester/nbproject/private/private.properties: -------------------------------------------------------------------------------- 1 | compile.on.save=true 2 | user.properties.file=C:\\Users\\PAKLAP.pk\\AppData\\Roaming\\NetBeans\\8.2\\build.properties 3 | -------------------------------------------------------------------------------- /Project/WSTester/nbproject/private/private.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Project/WSTester/nbproject/project.properties: -------------------------------------------------------------------------------- 1 | annotation.processing.enabled=true 2 | annotation.processing.enabled.in.editor=false 3 | annotation.processing.processor.options= 4 | annotation.processing.processors.list= 5 | annotation.processing.run.all.processors=true 6 | annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output 7 | build.classes.dir=${build.dir}/classes 8 | build.classes.excludes=**/*.java,**/*.form 9 | # This directory is removed when the project is cleaned: 10 | build.dir=build 11 | build.generated.dir=${build.dir}/generated 12 | build.generated.sources.dir=${build.dir}/generated-sources 13 | # Only compile against the classpath explicitly listed here: 14 | build.sysclasspath=ignore 15 | build.test.classes.dir=${build.dir}/test/classes 16 | build.test.results.dir=${build.dir}/test/results 17 | # Uncomment to specify the preferred debugger connection transport: 18 | #debug.transport=dt_socket 19 | debug.classpath=\ 20 | ${run.classpath} 21 | debug.test.classpath=\ 22 | ${run.test.classpath} 23 | # Files in build.classes.dir which should be excluded from distribution jar 24 | dist.archive.excludes= 25 | # This directory is removed when the project is cleaned: 26 | dist.dir=dist 27 | dist.jar=${dist.dir}/WSTester.jar 28 | dist.javadoc.dir=${dist.dir}/javadoc 29 | excludes= 30 | includes=** 31 | jar.compress=false 32 | javac.classpath= 33 | # Space-separated list of extra javac options 34 | javac.compilerargs= 35 | javac.deprecation=false 36 | javac.external.vm=true 37 | javac.processorpath=\ 38 | ${javac.classpath} 39 | javac.source=1.8 40 | javac.target=1.8 41 | javac.test.classpath=\ 42 | ${javac.classpath}:\ 43 | ${build.classes.dir} 44 | javac.test.processorpath=\ 45 | ${javac.test.classpath} 46 | javadoc.additionalparam= 47 | javadoc.author=false 48 | javadoc.encoding=${source.encoding} 49 | javadoc.noindex=false 50 | javadoc.nonavbar=false 51 | javadoc.notree=false 52 | javadoc.private=false 53 | javadoc.splitindex=true 54 | javadoc.use=true 55 | javadoc.version=false 56 | javadoc.windowtitle= 57 | main.class=wstester.Main 58 | manifest.file=manifest.mf 59 | meta.inf.dir=${src.dir}/META-INF 60 | mkdist.disabled=false 61 | platform.active=default_platform 62 | run.classpath=\ 63 | ${javac.classpath}:\ 64 | ${build.classes.dir} 65 | # Space-separated list of JVM arguments used when running the project. 66 | # You may also define separate properties like run-sys-prop.name=value instead of -Dname=value. 67 | # To set system properties for unit tests define test-sys-prop.name=value: 68 | run.jvmargs= 69 | run.test.classpath=\ 70 | ${javac.test.classpath}:\ 71 | ${build.test.classes.dir} 72 | source.encoding=UTF-8 73 | src.dir=src 74 | test.src.dir=test 75 | compile.on.save.unsupported.jaxws=true 76 | -------------------------------------------------------------------------------- /Project/WSTester/nbproject/project.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | org.netbeans.modules.java.j2seproject 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | WSTester 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /Project/WSTester/src/META-INF/jax-ws-catalog.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /Project/WSTester/src/META-INF/wsdl/localhost_8084/TurkishAirlines/PriceAndSeats.wsdl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | -------------------------------------------------------------------------------- /Project/WSTester/src/META-INF/wsdl/localhost_8084/TurkishAirlines/PriceAndSeats.xsd_1.xsd: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | -------------------------------------------------------------------------------- /Project/WSTester/src/wstester/Main.java: -------------------------------------------------------------------------------- 1 | /* 2 | * To change this license header, choose License Headers in Project Properties. 3 | * To change this template file, choose Tools | Templates 4 | * and open the template in the editor. 5 | */ 6 | package wstester; 7 | 8 | import webservices.PriceAndSeats; 9 | import webservices.PriceAndSeats_Service; 10 | 11 | /** 12 | * 13 | * @author MuhammadHarris 14 | */ 15 | public class Main { 16 | 17 | /** 18 | * @param args the command line arguments 19 | */ 20 | public static void main(String[] args) 21 | { 22 | PriceAndSeats proxy = (new PriceAndSeats_Service()).getPriceAndSeatsPort(); 23 | 24 | System.out.println("--------------------------------------------"); 25 | System.out.println("Available Seats in Pk-789 for 10/11/2017 are: " + proxy.getAvailableSeats("PK-789", "10/11/2017")); 26 | System.out.println("Price of a Seat for Lahore to Karachi is: " + proxy.getSeatPrice("Lahore", "Karachi") + "$"); 27 | System.out.println("--------------------------------------------"); 28 | } 29 | 30 | } 31 | -------------------------------------------------------------------------------- /Project/WSTester/xml-resources/web-service-references/PriceAndSeats/wsdl/localhost_8084/TurkishAirlines/PriceAndSeats.wsdl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | -------------------------------------------------------------------------------- /Project/WSTester/xml-resources/web-service-references/PriceAndSeats/wsdl/localhost_8084/TurkishAirlines/PriceAndSeats.xsd_1.xsd: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | --------------------------------------------------------------------------------