Repository: flex-asjs Updated Branches: refs/heads/develop 7b71ae856 -> 946589ef2
Added Apache headers Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/946589ef Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/946589ef Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/946589ef Branch: refs/heads/develop Commit: 946589ef2633f7b057527669f053f548a6338a7a Parents: 7b71ae8 Author: Harbs <[email protected]> Authored: Tue Jul 5 11:50:57 2016 +0300 Committer: Harbs <[email protected]> Committed: Tue Jul 5 11:50:57 2016 +0300 ---------------------------------------------------------------------- .../flex/org/apache/flex/net/HTTPConstants.as | 18 +++++++++++++ .../main/flex/org/apache/flex/net/HTTPUtils.as | 18 +++++++++++++ .../org/apache/flex/net/url/BinaryURLLoader.as | 18 +++++++++++++ .../flex/org/apache/flex/net/url/URLRequest.as | 18 +++++++++++++ .../flex/org/apache/flex/net/url/URLStream.as | 28 +++++++++++++++----- 5 files changed, 94 insertions(+), 6 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/946589ef/frameworks/projects/Network/src/main/flex/org/apache/flex/net/HTTPConstants.as ---------------------------------------------------------------------- diff --git a/frameworks/projects/Network/src/main/flex/org/apache/flex/net/HTTPConstants.as b/frameworks/projects/Network/src/main/flex/org/apache/flex/net/HTTPConstants.as index 10dac43..3ca2068 100644 --- a/frameworks/projects/Network/src/main/flex/org/apache/flex/net/HTTPConstants.as +++ b/frameworks/projects/Network/src/main/flex/org/apache/flex/net/HTTPConstants.as @@ -1,3 +1,21 @@ +//////////////////////////////////////////////////////////////////////////////// +// +// Licensed to the Apache Software Foundation (ASF) under one or more +// contributor license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright ownership. +// The ASF licenses this file to You under the Apache License, Version 2.0 +// (the "License"); you may not use this file except in compliance with +// the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +//////////////////////////////////////////////////////////////////////////////// package org.apache.flex.net { public final class HTTPConstants extends Object http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/946589ef/frameworks/projects/Network/src/main/flex/org/apache/flex/net/HTTPUtils.as ---------------------------------------------------------------------- diff --git a/frameworks/projects/Network/src/main/flex/org/apache/flex/net/HTTPUtils.as b/frameworks/projects/Network/src/main/flex/org/apache/flex/net/HTTPUtils.as index 494d9da..106154c 100644 --- a/frameworks/projects/Network/src/main/flex/org/apache/flex/net/HTTPUtils.as +++ b/frameworks/projects/Network/src/main/flex/org/apache/flex/net/HTTPUtils.as @@ -1,3 +1,21 @@ +//////////////////////////////////////////////////////////////////////////////// +// +// Licensed to the Apache Software Foundation (ASF) under one or more +// contributor license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright ownership. +// The ASF licenses this file to You under the Apache License, Version 2.0 +// (the "License"); you may not use this file except in compliance with +// the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +//////////////////////////////////////////////////////////////////////////////// package org.apache.flex.net { public class HTTPUtils http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/946589ef/frameworks/projects/Network/src/main/flex/org/apache/flex/net/url/BinaryURLLoader.as ---------------------------------------------------------------------- diff --git a/frameworks/projects/Network/src/main/flex/org/apache/flex/net/url/BinaryURLLoader.as b/frameworks/projects/Network/src/main/flex/org/apache/flex/net/url/BinaryURLLoader.as index f08111e..c98645d 100644 --- a/frameworks/projects/Network/src/main/flex/org/apache/flex/net/url/BinaryURLLoader.as +++ b/frameworks/projects/Network/src/main/flex/org/apache/flex/net/url/BinaryURLLoader.as @@ -1,3 +1,21 @@ +//////////////////////////////////////////////////////////////////////////////// +// +// Licensed to the Apache Software Foundation (ASF) under one or more +// contributor license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright ownership. +// The ASF licenses this file to You under the Apache License, Version 2.0 +// (the "License"); you may not use this file except in compliance with +// the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +//////////////////////////////////////////////////////////////////////////////// package org.apache.flex.net.url { http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/946589ef/frameworks/projects/Network/src/main/flex/org/apache/flex/net/url/URLRequest.as ---------------------------------------------------------------------- diff --git a/frameworks/projects/Network/src/main/flex/org/apache/flex/net/url/URLRequest.as b/frameworks/projects/Network/src/main/flex/org/apache/flex/net/url/URLRequest.as index b5ff9bc..b4596e0 100644 --- a/frameworks/projects/Network/src/main/flex/org/apache/flex/net/url/URLRequest.as +++ b/frameworks/projects/Network/src/main/flex/org/apache/flex/net/url/URLRequest.as @@ -1,3 +1,21 @@ +//////////////////////////////////////////////////////////////////////////////// +// +// Licensed to the Apache Software Foundation (ASF) under one or more +// contributor license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright ownership. +// The ASF licenses this file to You under the Apache License, Version 2.0 +// (the "License"); you may not use this file except in compliance with +// the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +//////////////////////////////////////////////////////////////////////////////// package org.apache.flex.net.url { public final class URLRequest extends Object http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/946589ef/frameworks/projects/Network/src/main/flex/org/apache/flex/net/url/URLStream.as ---------------------------------------------------------------------- diff --git a/frameworks/projects/Network/src/main/flex/org/apache/flex/net/url/URLStream.as b/frameworks/projects/Network/src/main/flex/org/apache/flex/net/url/URLStream.as index 4745e4b..9e69b47 100644 --- a/frameworks/projects/Network/src/main/flex/org/apache/flex/net/url/URLStream.as +++ b/frameworks/projects/Network/src/main/flex/org/apache/flex/net/url/URLStream.as @@ -1,4 +1,21 @@ - +//////////////////////////////////////////////////////////////////////////////// +// +// Licensed to the Apache Software Foundation (ASF) under one or more +// contributor license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright ownership. +// The ASF licenses this file to You under the Apache License, Version 2.0 +// (the "License"); you may not use this file except in compliance with +// the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +//////////////////////////////////////////////////////////////////////////////// package org.apache.flex.net.url { @@ -46,16 +63,13 @@ package org.apache.flex.net.url { COMPILE::JS { - var ab:ArrayBuffer = xhr.response as ArrayBuffer; - var bd:BinaryData = new BinaryData(ab); - return bd; + return new BinaryData(xhr.response as ArrayBuffer); } COMPILE::SWF { var ba:ByteArray = new ByteArray(); flashUrlStream.readBytes(ba); - var bd:BinaryData = new BinaryData(ba); - return bd; + return new BinaryData(ba); } } @@ -135,6 +149,8 @@ package org.apache.flex.net.url //TODO send an event that it's been aborted } + public var onComplete:Function; + public var onError:Function; } }
