public void mapName(final MessageBytes name, final MappingData mappingData) { final String nameStr = name.toString(); final GrizzlyAdapter handler = adaptersByName.get(nameStr); if (handler != null) { mappingData.wrapper = handler; mappingData.servletName = nameStr; } } }
public int indexOfIgnoreCase(String s, int starting) { toString(); String upper=strValue.toUpperCase(); String sU=s.toUpperCase(); return upper.indexOf( sU, starting ); }
public int indexOfIgnoreCase(String s, int starting) { toString(); String upper=strValue.toUpperCase(); String sU=s.toUpperCase(); return upper.indexOf( sU, starting ); }
public int indexOfIgnoreCase(String s, int starting) { toString(); String upper=strValue.toUpperCase(); String sU=s.toUpperCase(); return upper.indexOf( sU, starting ); }
/** * Return the protocol and version used to make this Request. */ public String getProtocol() { return request.protocol().toString(); }
/** * Return the server name responding to this Request. */ public String getServerName() { return (request.serverName().toString()); }
/** * Get the decoded request URI. * * @return the URL decoded request URI */ public String getDecodedRequestURI() { return (request.decodedURI().toString()); }
/** * Return the HTTP request method used in this Request. */ public String getMethod() { return request.method().toString(); }
/** * Return the request URI for this request. */ public String getRequestURI() { return request.requestURI().toString(); }
public Object nextElement() { MessageBytes current=next; findNext(); return current.toString(); } }
/** * Get the request URI associated with this processor. */ public String getRequestURI() { return request.requestURI().toString(); }
/** * Reads the header value using UTF-8 encoding * * @param headers * @param name * @return */ public final String readHeader(MimeHeaders headers, final String name) { final MessageBytes value = headers.getValue(name); return value == null ? null : value.toString(); }
/** * Return the HTTP request method used in this Request. */ public String getMethod() { return request.method().toString(); }
/** * Return the server name responding to this Request. */ public String getServerName() { return (request.serverName().toString()); }
/** * Get the decoded request URI. * * @return the URL decoded request URI */ public String getDecodedRequestURI() { return (request.decodedURI().toString()); }
@Override public boolean isApplicationRequest(Request request) { final String uri = request.requestURI().toString(); return mapping.matcher(uri).matches(); }
/** Unimplemented yet. Do a char->byte conversion. */ public void toBytes() { if( ! byteC.isNull() ) { type=T_BYTES; return; } toString(); type=T_BYTES; byte bb[] = strValue.getBytes(); byteC.setBytes(bb, 0, bb.length); }
public String getContentType() { contentType(); if ((contentTypeMB == null) || contentTypeMB.isNull()) return null; return contentTypeMB.toString(); }
public String getContentType() { contentType(); if ((contentTypeMB == null) || contentTypeMB.isNull()) return null; return contentTypeMB.toString(); }
public void service(Request req, final Response res) throws Exception { String uri = req.requestURI().toString(); if (uri.indexOf("..") >= 0) { res.setStatus(404); customizedErrorPage(req,res); return; } service(uri, req, res); }