This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>com.fileUploadModule</groupId> | |
<artifactId>FileUpload</artifactId> | |
<packaging>war</packaging> | |
<version>1.0-SNAPSHOT</version> | |
<name>FileUpload Maven Webapp</name> | |
<url>http://maven.apache.org</url> | |
<dependencies> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%-- | |
Created by IntelliJ IDEA. | |
User: vanji | |
Date: 6/22/13 | |
Time: 2:07 PM | |
This example is demonstrate how to upload a file into given location of the server | |
--%> | |
<html lang="en"> | |
<head> | |
<title>File Uploading Form</title> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%-- | |
Created by IntelliJ IDEA. | |
User: vanji | |
Date: 6/22/13 | |
Time: 2:18 PM | |
To change this template use File | Settings | File Templates. | |
--%> | |
<%@ page contentType="text/html;charset=UTF-8" language="java" %> | |
<%@ page import="java.io.*,java.util.*" %> | |
<%@ page import="org.apache.commons.fileupload.*" %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>com.area51.rest</groupId> | |
<artifactId>RESTfulExample</artifactId> | |
<packaging>war</packaging> | |
<version>1.0-SNAPSHOT</version> | |
<name>RESTfulExample Maven Webapp</name> | |
<url>http://maven.apache.org</url> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -i -H "Content-Type: application/json" -X POST -d '{ | |
"peoples": { | |
"people": [ | |
{ | |
"class": "Person", | |
"name": "vanjikumaran", | |
"birthday": "today", | |
"nickname": "Oracle of Omaha", | |
"phonNumbers": { | |
"phonNumber": [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<definitions xmlns="http://ws.apache.org/ns/synapse"> | |
<sequence name="main" onError="errorHandler"> | |
<in> | |
<send> | |
<endpoint> | |
<loadbalance> | |
<endpoint> | |
<address uri="http://localhost:9001/services/LBService1"> | |
<enableAddressing/> | |
<suspendDurationOnFailure>60</suspendDurationOnFailure> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<definitions xmlns="http://ws.apache.org/ns/synapse"> | |
<sequence name="errorHandler"> | |
<log level="custom"> | |
<property name="MESSAGE" value="Executing default "fault" sequence"/> | |
<property name="ERROR_CODE" expression="get-property('ERROR_CODE')"/> | |
<property name="ERROR_MESSAGE" expression="get-property('ERROR_MESSAGE')"/> | |
</log> | |
<makefault response="true"> | |
<code xmlns:tns="http://www.w3.org/2003/05/soap-envelope" value="tns:Receiver"/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<definitions xmlns="http://ws.apache.org/ns/synapse"> | |
<registry provider="org.wso2.carbon.mediation.registry.WSO2Registry"> | |
<parameter name="cachableDuration">15000</parameter> | |
</registry> | |
<proxy name="EntitlementService" | |
transports="https" | |
startOnLoad="true" | |
trace="disable"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Experimention :- TCP flow vs TCP flow | |
# Experimenter :- Sivajothy Vanjikumaran | |
#Create a simulator object | |
set ns [new Simulator] | |
#Colors Define | |
$ns color 1 brown | |
$ns color 2 green | |
#Save throughput for the First tcp flow | |
set f1 [open tcp-tcp-one.tr w] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Experimention :- TCP flow vs UDP flow | |
# Experimenter :- Sivajothy Vanjikumaran | | |
#Create a simulator object | |
set ns [new Simulator] | |
#Colors Define | |
$ns color 1 brown | |
$ns color 2 green | |
#Save throughput for the First tcp flow |
OlderNewer