setting svn:eol-style to native on java files
git-svn-id: https://svn.apache.org/repos/asf/mina/asyncweb/trunk@663823 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/examples/src/main/java/org/apache/asyncweb/examples/listener/Main.java b/examples/src/main/java/org/apache/asyncweb/examples/listener/Main.java
index 6728797..667140c 100755
--- a/examples/src/main/java/org/apache/asyncweb/examples/listener/Main.java
+++ b/examples/src/main/java/org/apache/asyncweb/examples/listener/Main.java
@@ -1,60 +1,60 @@
-/*
- * 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.asyncweb.examples.listener;
-
-
-import org.apache.asyncweb.server.BasicServiceContainer;
-import org.apache.asyncweb.server.HttpServiceHandler;
-import org.apache.asyncweb.server.transport.mina.MinaTransport;
-import org.apache.asyncweb.server.transport.mina.DefaultHttpIoHandler;
-import org.apache.asyncweb.server.resolver.ExactMatchURIServiceResolver;
-
-
-/**
- * An application launcher which runs the ClientListenerExample example.
- *
- * @author <a href="mailto:dev@mina.apache.org">Apache MINA Project</a>
- * @version $Rev$, $Date$
- */
-public class Main
-{
- public static void main( String[] args ) throws Exception
- {
- // Setup the default container with a service handler that contains the helloWorldService
- BasicServiceContainer container = new BasicServiceContainer();
- HttpServiceHandler handler = new HttpServiceHandler();
- handler.addHttpService( "clientListenerExample", new ClientListenerExample() );
- container.addServiceFilter( handler );
-
- // Set up a resolver for the HttpServiceHandler
- ExactMatchURIServiceResolver resolver = new ExactMatchURIServiceResolver();
- resolver.addURIMapping( "/listener", "clientListenerExample" );
- handler.setServiceResolver( resolver );
-
- // Create the mina transport and enable the container with it
- MinaTransport transport = new MinaTransport();
- container.addTransport( transport );
- DefaultHttpIoHandler ioHandler = new DefaultHttpIoHandler();
- ioHandler.setReadIdle( 10 );
- transport.setIoHandler( ioHandler );
-
- // Fire it up and go
- container.start();
- }
-}
+/*
+ * 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.asyncweb.examples.listener;
+
+
+import org.apache.asyncweb.server.BasicServiceContainer;
+import org.apache.asyncweb.server.HttpServiceHandler;
+import org.apache.asyncweb.server.transport.mina.MinaTransport;
+import org.apache.asyncweb.server.transport.mina.DefaultHttpIoHandler;
+import org.apache.asyncweb.server.resolver.ExactMatchURIServiceResolver;
+
+
+/**
+ * An application launcher which runs the ClientListenerExample example.
+ *
+ * @author <a href="mailto:dev@mina.apache.org">Apache MINA Project</a>
+ * @version $Rev$, $Date$
+ */
+public class Main
+{
+ public static void main( String[] args ) throws Exception
+ {
+ // Setup the default container with a service handler that contains the helloWorldService
+ BasicServiceContainer container = new BasicServiceContainer();
+ HttpServiceHandler handler = new HttpServiceHandler();
+ handler.addHttpService( "clientListenerExample", new ClientListenerExample() );
+ container.addServiceFilter( handler );
+
+ // Set up a resolver for the HttpServiceHandler
+ ExactMatchURIServiceResolver resolver = new ExactMatchURIServiceResolver();
+ resolver.addURIMapping( "/listener", "clientListenerExample" );
+ handler.setServiceResolver( resolver );
+
+ // Create the mina transport and enable the container with it
+ MinaTransport transport = new MinaTransport();
+ container.addTransport( transport );
+ DefaultHttpIoHandler ioHandler = new DefaultHttpIoHandler();
+ ioHandler.setReadIdle( 10 );
+ transport.setIoHandler( ioHandler );
+
+ // Fire it up and go
+ container.start();
+ }
+}
diff --git a/server/src/main/java/org/apache/asyncweb/server/HttpClientListener.java b/server/src/main/java/org/apache/asyncweb/server/HttpClientListener.java
index 27e36bf..701ea58 100644
--- a/server/src/main/java/org/apache/asyncweb/server/HttpClientListener.java
+++ b/server/src/main/java/org/apache/asyncweb/server/HttpClientListener.java
@@ -1,50 +1,50 @@
-/*
- * 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.asyncweb.server;
-
-
-/**
- * An HTTP client connection listener. Since Asyncweb allows asynchronous
- * handling of responses (response need not be committed in the HttpService
- * handleRequest() method), connections can be held open for some time. For
- * this reason a mechanism is needed to be informed of client disconnects or
- * for notifications when the connection idles.
- *
- * @author The Apache MINA Project (dev@mina.apache.org)
- * @version $Rev$, $Date$
- */
-public interface HttpClientListener
-{
- /**
- * Gets notification of client disconnects.
- *
- * @param ctx the context associated with the disconnect event
- */
- void clientDisconnected( HttpServiceContext ctx );
-
-
- /**
- * Gets notification of client idling.
- *
- * @param ctx the context of the client which has gone idle
- * @param idleTime the time at which a client began idling
- * @param idleCount the number of times we were informed of idling
- */
- void clientIdle( HttpServiceContext ctx, long idleTime, int idleCount );
-}
+/*
+ * 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.asyncweb.server;
+
+
+/**
+ * An HTTP client connection listener. Since Asyncweb allows asynchronous
+ * handling of responses (response need not be committed in the HttpService
+ * handleRequest() method), connections can be held open for some time. For
+ * this reason a mechanism is needed to be informed of client disconnects or
+ * for notifications when the connection idles.
+ *
+ * @author The Apache MINA Project (dev@mina.apache.org)
+ * @version $Rev$, $Date$
+ */
+public interface HttpClientListener
+{
+ /**
+ * Gets notification of client disconnects.
+ *
+ * @param ctx the context associated with the disconnect event
+ */
+ void clientDisconnected( HttpServiceContext ctx );
+
+
+ /**
+ * Gets notification of client idling.
+ *
+ * @param ctx the context of the client which has gone idle
+ * @param idleTime the time at which a client began idling
+ * @param idleCount the number of times we were informed of idling
+ */
+ void clientIdle( HttpServiceContext ctx, long idleTime, int idleCount );
+}