Java Bean for Link Details

Project: http://git-wip-us.apache.org/repos/asf/incubator-streams/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-streams/commit/4b3d00eb
Tree: http://git-wip-us.apache.org/repos/asf/incubator-streams/tree/4b3d00eb
Diff: http://git-wip-us.apache.org/repos/asf/incubator-streams/diff/4b3d00eb

Branch: refs/heads/master
Commit: 4b3d00eba849fdc7cce40b7f8a656d49f7ee2682
Parents: 56a395f
Author: sblackmon <[email protected]>
Authored: Thu Apr 10 13:20:37 2014 -0600
Committer: sblackmon <[email protected]>
Committed: Thu Apr 10 13:20:37 2014 -0600

----------------------------------------------------------------------
 .../org/apache/streams/urls/LinkDetails.json    | 73 ++++++++++++++++++++
 1 file changed, 73 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/4b3d00eb/streams-contrib/streams-processor-urls/src/main/jsonschema/org/apache/streams/urls/LinkDetails.json
----------------------------------------------------------------------
diff --git 
a/streams-contrib/streams-processor-urls/src/main/jsonschema/org/apache/streams/urls/LinkDetails.json
 
b/streams-contrib/streams-processor-urls/src/main/jsonschema/org/apache/streams/urls/LinkDetails.json
new file mode 100644
index 0000000..83f7692
--- /dev/null
+++ 
b/streams-contrib/streams-processor-urls/src/main/jsonschema/org/apache/streams/urls/LinkDetails.json
@@ -0,0 +1,73 @@
+{
+    "type": "object",
+    "$schema": "http://json-schema.org/draft-03/schema";,
+    "id": "#",
+    "properties": {
+        "linkStatus" : {
+            "type" : "string",
+            "enum" : [
+                "SUCCESS",
+                "ERROR",
+                "MALFORMED_URL",
+                "NOT_FOUND",
+                "FORBIDDEN",
+                "REDIRECT_ERROR",
+                "UNAUTHORIZED",
+                "LOOP",
+                "HTTP_ERROR_STATUS",
+                "EXCEPTION"
+            ]
+        },
+        "originalURL": {
+            "type": "string"
+        },
+        "finalURL": {
+            "type": "string"
+        },
+        "normalizedURL": {
+            "type": "string"
+        },
+        "urlParts": {
+            "type": "array",
+            "items": {
+                "type": "string"
+            }
+        },
+        "domain": {
+            "type": "string"
+        },
+        "redirected": {
+            "type": "boolean"
+        },
+        "redirects": {
+            "type": "array",
+            "items": {
+                "type": "string"
+            }
+        },
+        "redirectCount": {
+            "type": "integer",
+            "default": 0
+        },
+        "tracked": {
+            "type": "boolean"
+        },
+        "finalResponseCode" : {
+            "type" : "integer"
+        },
+        "cookies": {
+            "type": "array",
+            "uniqueItems": true,
+            "items": {
+                "type": "string"
+            }
+        },
+        "startTime": {
+            "type": "string",
+            "format" : "date-time"
+        },
+        "tookInMills": {
+            "type": "integer"
+        }
+    }
+}
\ No newline at end of file

Reply via email to