本文整理了Java中org.eclipse.jetty.io.Buffer.asImmutableBuffer()
方法的一些代码示例,展示了Buffer.asImmutableBuffer()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Buffer.asImmutableBuffer()
方法的具体详情如下:
包路径:org.eclipse.jetty.io.Buffer
类名称:Buffer
方法名:asImmutableBuffer
暂无
代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-all-server
@Override
protected synchronized void onResponseHeader(Buffer name, Buffer value) throws IOException
{
if (_responseFields != null)
{
_responseFields.add(name, value.asImmutableBuffer());
}
super.onResponseHeader(name, value);
}
}
代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-webapp
name=name.asImmutableBuffer();
value=value.asImmutableBuffer();
代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-server
name=name.asImmutableBuffer();
value=value.asImmutableBuffer();
代码示例来源:origin: org.eclipse.jetty/http
name=name.asImmutableBuffer();
value=value.asImmutableBuffer();
代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-all-server
name=name.asImmutableBuffer();
value=value.asImmutableBuffer();
代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-plus
name=name.asImmutableBuffer();
value=value.asImmutableBuffer();
代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-all-server
/**
* Set a field.
*
* @param name the name of the field
* @param value the value of the field. If null the field is cleared.
*/
public void put(Buffer name, Buffer value)
{
remove(name);
if (value == null)
return;
if (!(name instanceof BufferCache.CachedBuffer))
name = HttpHeaders.CACHE.lookup(name);
if (!(value instanceof CachedBuffer))
value= HttpHeaderValues.CACHE.lookup(value).asImmutableBuffer();
// new value;
Field field = new Field(name, value);
_fields.add(field);
_names.put(name, field);
}
代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-webapp
/**
* Set a field.
*
* @param name the name of the field
* @param value the value of the field. If null the field is cleared.
*/
public void put(Buffer name, Buffer value)
{
remove(name);
if (value == null)
return;
if (!(name instanceof BufferCache.CachedBuffer))
name = HttpHeaders.CACHE.lookup(name);
if (!(value instanceof CachedBuffer))
value= HttpHeaderValues.CACHE.lookup(value).asImmutableBuffer();
// new value;
Field field = new Field(name, value);
_fields.add(field);
_names.put(name, field);
}
代码示例来源:origin: org.eclipse.jetty/http
/**
* Set a field.
*
* @param name the name of the field
* @param value the value of the field. If null the field is cleared.
*/
public void put(Buffer name, Buffer value)
{
remove(name);
if (value == null)
return;
if (!(name instanceof BufferCache.CachedBuffer))
name = HttpHeaders.CACHE.lookup(name);
if (!(value instanceof CachedBuffer))
value= HttpHeaderValues.CACHE.lookup(value).asImmutableBuffer();
// new value;
Field field = new Field(name, value);
_fields.add(field);
_names.put(name, field);
}
代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-server
/**
* Set a field.
*
* @param name the name of the field
* @param value the value of the field. If null the field is cleared.
*/
public void put(Buffer name, Buffer value)
{
remove(name);
if (value == null)
return;
if (!(name instanceof BufferCache.CachedBuffer))
name = HttpHeaders.CACHE.lookup(name);
if (!(value instanceof CachedBuffer))
value= HttpHeaderValues.CACHE.lookup(value).asImmutableBuffer();
// new value;
Field field = new Field(name, value);
_fields.add(field);
_names.put(name, field);
}
代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-plus
/**
* Set a field.
*
* @param name the name of the field
* @param value the value of the field. If null the field is cleared.
*/
public void put(Buffer name, Buffer value)
{
remove(name);
if (value == null)
return;
if (!(name instanceof BufferCache.CachedBuffer))
name = HttpHeaders.CACHE.lookup(name);
if (!(value instanceof CachedBuffer))
value= HttpHeaderValues.CACHE.lookup(value).asImmutableBuffer();
// new value;
Field field = new Field(name, value);
_fields.add(field);
_names.put(name, field);
}
代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-all-server
protected void startRequest(Buffer method, Buffer uri, Buffer version) throws IOException
uri=uri.asImmutableBuffer();
代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-webapp
protected void startRequest(Buffer method, Buffer uri, Buffer version) throws IOException
uri=uri.asImmutableBuffer();
代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-server
protected void startRequest(Buffer method, Buffer uri, Buffer version) throws IOException
uri=uri.asImmutableBuffer();
代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-plus
protected void startRequest(Buffer method, Buffer uri, Buffer version) throws IOException
uri=uri.asImmutableBuffer();
代码示例来源:origin: org.eclipse.jetty/server
protected void startRequest(Buffer method, Buffer uri, Buffer version) throws IOException
uri=uri.asImmutableBuffer();
内容来源于网络,如有侵权,请联系作者删除!