ttomcat-1778514358873.zip-extract/apache-tomcat-11.0.18-src/java/org/apache/tomcat/util/http/ServerCookie.java

Path
ttomcat-1778514358873.zip-extract/apache-tomcat-11.0.18-src/java/org/apache/tomcat/util/http/ServerCookie.java
Status
scanned
Type
file
Name
ServerCookie.java
Extension
.java
Programming language
Java
Mime type
text/plain
File type
ASCII text, with CRLF line terminators
Tag

      
    
Rootfs path

      
    
Size
2063 (2.0 KB)
MD5
ea2fce3f5fbb51b7c23f200a4804d0b2
SHA1
257c96580c19231fb927fe556390bc6a0c49e695
SHA256
a2d0c8a36d603dee186581f52be603637fc41c897ded19a534406dc536b26762
SHA512

      
    
SHA1_git
fbb15d54017c1f9df1f8e501f835a1cda7ef039e
Is binary

      
    
Is text
True
Is archive

      
    
Is media

      
    
Is legal

      
    
Is manifest

      
    
Is readme

      
    
Is top level

      
    
Is key file

      
    
ServerCookie.java | 2.0 KB |

/* * 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.tomcat.util.http; import java.io.Serial; import java.io.Serializable; import org.apache.tomcat.util.buf.MessageBytes; /** * Server-side cookie representation. Allows recycling and uses MessageBytes as low-level representation ( and thus the * byte -&gt; char conversion can be delayed until we know the charset ). * <p> * Tomcat.core uses this recyclable object to represent cookies, and the facade will convert it to the external * representation. */ public class ServerCookie implements Serializable { @Serial private static final long serialVersionUID = 1L; // RFC 6265 private final MessageBytes name = MessageBytes.newInstance(); private final MessageBytes value = MessageBytes.newInstance(); public ServerCookie() { // NOOP } public void recycle() { name.recycle(); value.recycle(); } public MessageBytes getName() { return name; } public MessageBytes getValue() { return value; } // -------------------- utils -------------------- @Override public String toString() { return "Cookie " + getName() + "=" + getValue(); } }
Detected license expression
apache-2.0
Detected license expression (SPDX)
Apache-2.0
Percentage of license text
49.79
Copyrights

      
    
Holders

      
    
Authors

      
    
License detections License expression License expression SPDX
apache_2_0-4bde3f57-78aa-4201-96bf-531cba09e7de apache-2.0 Apache-2.0
URL Start line End line
http://www.apache.org/licenses/LICENSE-2.0 9 9