J2ME Form Nesneleri Melih Sakarya. Connection HttpConnectionInputConnectionOutputConnectionDatagramConnectionStreamConnection Socket Connection lari.

Slides:



Advertisements
Similar presentations
©2002, Ed Skoudis Format String Stack View main() { char user_input[100]; char buffer[100]; int x; … /*get user_input*/ … snprintf(buffer, sizeof buffer,
Advertisements

McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 22 Simple Mail Transfer Protocol (SMTP)
Generic Connection Framework Harald Falzberger und Simon Tretter J2ME:
HTTP and Apache Roy T. Fielding eBuilt, Inc. The Apache Software Foundation
Programming with Android: Network Operations
1 Arrays, Strings and Collections [2] Rajkumar Buyya Grid Computing and Distributed Systems (GRIDS) Laboratory Dept. of Computer Science and Software Engineering.
CS193H: High Performance Web Sites Lecture 17: Rule 14 – Make Ajax Cacheable Steve Souders Google
CS193H: High Performance Web Sites Lecture 3: HTTP and the Web 100 Performance Profile Steve Souders Google
Runtime Prevention & Recovery Protect existing applications Advantages: Prevents vulnerabilities from doing harm Safe mode for Web application execution.
University of Wisconsin - Madison Curran Riley 1711/criley.
The World Wide Web and the Internet MIS XLM.B Jack G. Zheng May 13 th 2008.
MS Windows 2000 PRO Widely used version of the Microsoft windows operating system Designed for use on computer workstations and portable computers Workstation.
4 Copyright © 2005, Oracle. All rights reserved. Creating the Web Tier: Servlets.
0 - 0.
Bruce Scharlau, University of Aberdeen, 2010 Java ME Networking Mobile Computing Some slides from MobEduNet This covers HTTP in detail, and mentions other.
Content Interaction and Formatting, Tayeb LEMLOUMA & Nabil Layaïda. November Tayeb Lemlouma & Nabil Layaïda Presented by Sébastien Laborie November.
OJS goes mobile An investigation of how to adapt OJS to meet the needs of mobile Purposes of the investigation Mobile devices used in the investigation.
Social Web Design 1 Darby Chang Social Web Design.
Molecular Biomedical Informatics Web Programming 1.
For(int i = 1; i
1 Programming the Web: HTML Basics Computing Capilano College.
J2ME Melih Sakarya Java Teknolojileri Derneği. JVM JAVA Kullanılan yerler  Windows-Linux-Unix-Solaris  PDA lar  Smart Cardlar  Cep Telefonları  Appletler.
Purpose : To convert this string to a new character array. Return Type : char[ ] Parameters : none Declaration : public char[ ] toCharArray() Returns.
Mohamed. M. Saad.  Java Virtual Machine Prototype based on Jikes RVM  Targets  Code profiling/visualization using execution flow  Utilize large number.
EC-111 Algorithms & Computing Lecture #8 Instructor: Jahan Zeb Department of Computer Engineering (DCE) College of E&ME NUST.
EC-111 Algorithms & Computing Lecture #11 Instructor: Jahan Zeb Department of Computer Engineering (DCE) College of E&ME NUST.
Building a Web Crawler in Python Frank McCown Harding University Spring 2013 This work is licensed under a Creative Commons Attribution-NonCommercial-
Presenter: James Huang Date: Sept. 29,  HTTP and WWW  Bottle Web Framework  Request Routing  Sending Static Files  Handling HTML  HTTP Errors.
Grouper UI Part 2 Shilen Patel Duke University This work licensed under a Creative Commons Attribution-NonCommercial 3.0 Unported License.
Presentation 10 SOAP on the Microsoft Platform (.NET)
Introduction to Computing Using Python CSC Winter 2013 Week 8: WWW and Search  World Wide Web  Python Modules for WWW  Web Crawling  Thursday:
Cosc 4755 Mobile networking Overview and Stream, Socket, and Datagram.
Cosc 5/4730 Blackberry: More of the GCF. Common Connections URL SchemeProtocolGCF TypeDefined by Btl2capBluetoothL2CAPConnectionJSR 82 datagramDatagramDatagramConnectionCLDC,
Generic Connection Framework Connection FileConnectionSocketConnectionHTTPConnection InputConnection OutputConnection StreamConnection.
Java 2 Micro Edition Mano Chen Senior Technical Consultant
13-Jul-15 Sockets and URLs. 2 Sockets A socket is a low-level software device for connecting two computers together Sockets can also be used to connect.
An program As a simple example of socket programming we can implement a program that sends to a remote site As a simple example of socket.
Java Mobile Application sms,sim,mms and barcode application Presented by Ayedh(SIM and MMS) Asad(SMS and Barcode Application)
Tools for Web Applications. Overview of TCP/IP Link Layer Network Layer Transport Layer Application Layer.
MIDP Programming Networking Khanh Le. / 2 of Chapter Objectives The CLDC Streams Model Generic Connection Framework (GCF) Supported Protocols Creating.
Jsp (Java Server Page) Is a server side program.
Programming Handheld and Mobile devices 1 Programming of Handheld and Mobile Devices Lecture 15 IO Using http Rob Pooley
MIDP Programming Networking. Chapter Objectives The CLDC Streams Model Generic Connection Framework (GCF) Supported Protocols Creating a Connection Review.
Adapted from  2012 Prentice Hall, Inc. All rights reserved. 5 th ed: Chapter 2 and th ed: 4.11 SY306 Web and Databases for Cyber Operations.
Group 2 Web Service For Collaborative editing Uses scalable Client-Server architecture to minimize network communication and improve reliability Provides.

Adding network connections. Connecting to the Network To perform the network operations, your application manifest must include the following permissions:
Generic Connection Framework Connection FileConnectionSocketConnectionHTTPConnection InputConnection OutputConnection StreamConnection.
Lesson 11. CGI CGI is the interface between a Web page or browser and a Web server that is running a certain program/script. The CGI (Common Gateway Interface)
The Java Platform Micro Edition Java ME
Building Web Apps with Servlets
Lab 3: More Phone-Based Techniques
Web Development Web Servers.
Application HTTP.
Sockets and URLs 17-Sep-18.
Uniform Resource Locators
Sockets and URLs 13-Nov-18.
Clients and Servers 19-Nov-18.
Clients and Servers 1-Dec-18.
Sockets and URLs 3-Dec-18.
Introduction to Client/Server Design
HTTP Request Method URL Protocol Version GET /index.html HTTP/1.1
Uniform Resource Locators (URLs)
CS3220 Web and Internet Programming Cookies and Session Tracking
Kevin Harville Source: Webmaster in a Nutshell, O'Rielly Books
Uniform Resource Locators
CS3220 Web and Internet Programming Cookies and Session Tracking
Uniform Resource Locators (URLs)
Clients and Servers 19-Jul-19.
Clients and Servers 13-Sep-19.
Presentation transcript:

J2ME Form Nesneleri Melih Sakarya

Connection HttpConnectionInputConnectionOutputConnectionDatagramConnectionStreamConnection Socket Connection lari Web Servisleri

HttpConnection HtppConnection conn=(HtppConnection )Connector.open(URL);

HttpConnection conn.setRequestMethod(HttpConnection.GET); conn.setRequestProperty("IF-Modified-Since", "10 Nov :29:12 GMT"); conn.setRequestProperty("User-Agent","Profile/MIDP-1.0 Confirguration/CLDC-1.0"); conn.setRequestProperty("Content-Language", "en-CA");

HttpConnection HtppConnection conn=(HtppConnection )Connector.open(URL); InputStream is=conn.openInputStream(); int ch; while ((ch=is.read())!=-1) { buffer.append((char)ch);}is.close();conn.close(); String sonuc = buffer.toString();

StreamConnection StreamConnection conn=(StreamConnection )Connector.open(URL);

StreamConnection InputStream is=conn.openInputStream(); int ch; while ((ch=is.read())!=-1) { buffer.append((char)ch);}is.close();conn.close(); String sonuc = buffer.toString();

Sunucu Tarafi <% out.println(“Ekrana Bas”); %>

Tomcat Kurulumu

Sunucu Tarafli Sorgulama String URL=“ HtppConnection conn=(HtppConnection )Connector.open(URL); InputStream is=conn.openInputStream(); int ch; while ((ch=is.read())!=-1) { buffer.append((char)ch);}is.close();conn.close(); String sonuc = buffer.toString();

Sunucu Tarafi <% String okulNo=“”+request.getParameter(“okulNo”); if(okulNo.equals(“111”)){ out.println(“Selam Melih”); }%>

Veritabanindan Sorgulama <% String connectionURL = "jdbc:mysql://localhost:3306/mydatabase?user=username;password=password" ; Connection connection = null; Statement statement = null; ResultSet rs = null; %><%Class.forName("org.gjt.mm.mysql.Driver").newInstance(); connection = DriverManager.getConnection(connectionURL, "", ""); statement = connection.createStatement(); rs = statement.executeQuery("SELECT * FROM ogrenciler"); while (rs.next()) { out.println(rs.getString(“ad")+” ”+rs.getString(“ad")+“\n"); }rs.close();%>

Belli Araliklarla Baglanma TimerTask task=new TimerTask(){ public void run(){ veriGetir();}}; Timer timer=new Timer(); timer.schedule(task,new Date(),1000); Form form=new Form(""); ticker=new Ticker(""); form.setTicker(ticker);

Sunucu Tarafindan Resim Getirme HttpConnection conn=(HttpConnection)Connector.open(URL); InputStream is=conn.openInputStream(); DataInputStream din=new DataInputStream(is); int length=(int)conn.getLength(); byte[] data = new byte[length]; din.readFully( data ); is.close();din.close(); Image image=Image.createImage(data,0,data.length);

SORULAR ???