@Service(value=java.lang.Object.class) @Property(name="javax.ws.rs", boolValue=true) @Provider public class PathNodeWriter extends Object implements javax.ws.rs.ext.MessageBodyWriter<org.wymiwyg.commons.util.dirbrowser.PathNode>
Constructor and Description |
---|
PathNodeWriter() |
Modifier and Type | Method and Description |
---|---|
protected void |
activate(org.osgi.service.component.ComponentContext context) |
long |
getSize(org.wymiwyg.commons.util.dirbrowser.PathNode t,
Class<?> type,
Type genericType,
java.lang.annotation.Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType) |
boolean |
isWriteable(Class<?> type,
Type genericType,
java.lang.annotation.Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType) |
void |
writeTo(org.wymiwyg.commons.util.dirbrowser.PathNode t,
Class<?> type,
Type genericType,
java.lang.annotation.Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType,
javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders,
OutputStream entityStream) |
@Property(value="600", label="Max-Age", description="Specifies the value of the max-age fieldset in the cache-control header, as per RFC 2616 this is a number of seconds") public static final String MAX_AGE
protected void activate(org.osgi.service.component.ComponentContext context)
public boolean isWriteable(Class<?> type, Type genericType, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
isWriteable
in interface javax.ws.rs.ext.MessageBodyWriter<org.wymiwyg.commons.util.dirbrowser.PathNode>
public long getSize(org.wymiwyg.commons.util.dirbrowser.PathNode t, Class<?> type, Type genericType, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
getSize
in interface javax.ws.rs.ext.MessageBodyWriter<org.wymiwyg.commons.util.dirbrowser.PathNode>
public void writeTo(org.wymiwyg.commons.util.dirbrowser.PathNode t, Class<?> type, Type genericType, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders, OutputStream entityStream) throws IOException, javax.ws.rs.WebApplicationException
writeTo
in interface javax.ws.rs.ext.MessageBodyWriter<org.wymiwyg.commons.util.dirbrowser.PathNode>
IOException
javax.ws.rs.WebApplicationException
Copyright © 2014 The Apache Software Foundation. All Rights Reserved.