All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.apache.juneau.http.Server Maven / Gradle / Ivy

There is a newer version: 9.0.1
Show newest version
// ***************************************************************************************************************************
// * 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.juneau.http;

import org.apache.juneau.http.annotation.*;

/**
 * Represents a parsed Server HTTP response header.
 *
 * 

* A name for the server. * *

Example
*

* Server: Apache/2.4.1 (Unix) *

* *
RFC2616 Specification
* * The Server response-header field contains information about the software used by the origin server to handle the * request. * The field can contain multiple product tokens (section 3.8) and comments identifying the server and any significant * sub-products. * The product tokens are listed in order of their significance for identifying the application. * *

* Server = "Server" ":" 1*( product | comment ) *

* *

* Example: *

* Server: CERN/3.0 libwww/2.17 *

* *

* If the response is being forwarded through a proxy, the proxy application MUST NOT modify the Server response-header. * Instead, it SHOULD include a Via field (as described in section 14.45). * *

* Note: Revealing the specific software version of the server might allow the server machine to become more vulnerable * to attacks against software that is known to contain security holes. * Server implementors are encouraged to make this field a configurable option. * *

See Also:
*
    *
*/ @Header("Server") public final class Server extends HeaderString { /** * Returns a parsed Server header. * * @param value The Server header string. * @return The parsed Server header, or null if the string was null. */ public static Server forString(String value) { if (value == null) return null; return new Server(value); } private Server(String value) { super(value); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy