public class RobotsTxtResource extends Resource
Constructor and Description |
---|
RobotsTxtResource(String contents) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
String |
getContents() |
Map<String,String> |
getHttpHeaders()
Assumes an HTTP response - return the HTTP headers, not including the
HTTP Message header
|
long |
getRecordLength() |
int |
getStatusCode()
Assumes an HTTP resource - return the HTTP response code
|
available, getHeader, getRefersToDate, getRefersToTargetURI, mark, markSupported, parseHeaders, read, read, read, reset, setChunkedEncoding, setInputStream, skip
protected String contents
public RobotsTxtResource(String contents)
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class Resource
IOException
public int getStatusCode()
Resource
getStatusCode
in class Resource
public long getRecordLength()
getRecordLength
in class Resource
public Map<String,String> getHttpHeaders()
Resource
getHttpHeaders
in class Resource
public String getContents()
Copyright © 2005–2015 IIPC. All rights reserved.