Skip to content

Commit

Permalink
cleaning leading spaces from code files
Browse files Browse the repository at this point in the history
  • Loading branch information
sangupta committed Apr 28, 2016
1 parent e19b89a commit a2ae9a8
Show file tree
Hide file tree
Showing 147 changed files with 5,374 additions and 5,374 deletions.
22 changes: 11 additions & 11 deletions src/main/java/com/sangupta/jerry/ApplicationContext.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,49 +2,49 @@
*
* jerry - Common Java Functionality
* Copyright (c) 2012-2016, Sandeep Gupta
*
*
* http://sangupta.com/projects/jerry-core
*
*
* Licensed 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 com.sangupta.jerry;

import java.util.UUID;

/**
* Application context that holds some base values for every application.
*
*
* @author sangupta
*
*/
public class ApplicationContext {

/**
* The time at which this particular node started up
*/
public static final long STARTUP_TIME = System.currentTimeMillis();

/**
* The project version as read from the manifest file of this project - it may be empty
*/
public static final String PROJECT_VERSION = ApplicationContext.class.getPackage().getImplementationVersion();

/**
* Node ID that is unique at the time of application startup
*/
public static final String NODE_ID = UUID.randomUUID().toString();

}
}
106 changes: 53 additions & 53 deletions src/main/java/com/sangupta/jerry/constants/HttpHeaderName.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,124 +2,124 @@
*
* jerry - Common Java Functionality
* Copyright (c) 2012-2016, Sandeep Gupta
*
*
* http://sangupta.com/projects/jerry-core
*
*
* Licensed 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 com.sangupta.jerry.constants;

/**
* Constants regarding various HTTP Header names. The basic values have been
* copied from the W3C page at,
*
*
* http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html
*
*
*
*
* @author sangupta
*
*/
public interface HttpHeaderName {

public static final String ACCEPT = "Accept";

public static final String ACCEPT_CHARSET = "Accept-Charset";

public static final String ACCEPT_ENCODING = "Accept-Encoding";

public static final String ACCEPT_LANGUAGE = "Accept-Language";

public static final String ACCEPT_RANGES = "Accept-Ranges";

public static final String AGE = "Age";

public static final String ALLOW = "Allow";

public static final String AUTHORIZATION = "Authorization";

public static final String CACHE_CONTROL = "Cache-Control";

public static final String CONNECTION = "Connection";

public static final String CONTENT_ENCODING = "Content-Encoding";

public static final String CONTENT_LANGUAGE = "Content-Language";

public static final String CONTENT_LENGTH = "Content-Length";

public static final String CONTENT_LOCATION = "Content-Location";

public static final String CONTENT_MD5 = "Content-MD5";

public static final String CONTENT_RANGE = "Content-Range";

public static final String CONTENT_TYPE = "Content-Type";

public static final String DATE = "Date";

public static final String ETAG = "ETag";

public static final String EXPECT = "Expect";

public static final String EXPIRES = "Expires";

public static final String HOST = "Host";

public static final String IF_MODIFIED_SINCE = "If-Modified-Since";

public static final String IF_NONE_MATCH = "If-None-Match";

public static final String IF_RANGE = "If-Range";

public static final String IF_UNMODIFIED_SINCE = "If-Unmodified-Since";

public static final String LAST_MODIFIED = "Last-Modified";

public static final String LOCATION = "Location";

public static final String MAX_FORWARDS = "Max-Forwards";

public static final String P3P = "P3P";

public static final String PRAGMA = "Pragma";

public static final String PROXY_AUTHENTICATE = "Proxy-Authenticate";

public static final String PROXY_AUTHORIZATION = "Proxy-Authorization";

public static final String REFERER = "Referer";

public static final String RETRY_AFTER = "Retry-After";

public static final String SERVER = "Server";

public static final String SET_COOKIE = "Set-Cookie";

public static final String TRANSFER_ENCODING = "Transfer-Encoding";

public static final String UPGRADE = "Upgrade";

public static final String USER_AGENT = "User-Agent";

public static final String VARY = "Vary";

public static final String VIA = "Via";

public static final String WARNING = "Warning";

public static final String WWW_AUTHENTICATE = "WWW-Authenticate";
}

}
Loading

0 comments on commit a2ae9a8

Please sign in to comment.