Polishing
This commit is contained in:
parent
af272c2124
commit
fafb823e8d
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2002-2014 the original author or authors.
|
||||
* Copyright 2002-2015 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
|
@ -17,7 +17,7 @@
|
|||
package org.springframework.cache;
|
||||
|
||||
/**
|
||||
* Interface that defines the common cache operations.
|
||||
* Interface that defines common cache operations.
|
||||
*
|
||||
* <b>Note:</b> Due to the generic use of caching, it is recommended that
|
||||
* implementations allow storage of <tt>null</tt> values (for example to
|
||||
|
|
@ -68,8 +68,8 @@ public interface Cache {
|
|||
* the cache contains no mapping for this key
|
||||
* @throws IllegalStateException if a cache entry has been found
|
||||
* but failed to match the specified type
|
||||
* @see #get(Object)
|
||||
* @since 4.0
|
||||
* @see #get(Object)
|
||||
*/
|
||||
<T> T get(Object key, Class<T> type);
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2002-2013 the original author or authors.
|
||||
* Copyright 2002-2015 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
|
@ -33,12 +33,13 @@ public interface StreamingHttpOutputMessage extends HttpOutputMessage {
|
|||
*/
|
||||
void setBody(Body body);
|
||||
|
||||
|
||||
/**
|
||||
* Defines the contract for bodies that can be written directly to a
|
||||
* {@link OutputStream}. It is useful with HTTP client libraries that provide indirect
|
||||
* access to an {@link OutputStream} via a callback mechanism.
|
||||
* Defines the contract for bodies that can be written directly to an {@link OutputStream}.
|
||||
* It is useful with HTTP client libraries that provide indirect access to an
|
||||
* {@link OutputStream} via a callback mechanism.
|
||||
*/
|
||||
public interface Body {
|
||||
interface Body {
|
||||
|
||||
/**
|
||||
* Writes this body to the given {@link OutputStream}.
|
||||
|
|
@ -46,7 +47,6 @@ public interface StreamingHttpOutputMessage extends HttpOutputMessage {
|
|||
* @throws IOException in case of errors
|
||||
*/
|
||||
void writeTo(OutputStream outputStream) throws IOException;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue